for some reason my variable 'character' is causing this message to pop up.
- Run-Time Check Failure #2 - Stack around the variable ' character ' was corrupted.
here is the code.
#include "stdio.h"
#include "stdafx.h"
#include "stdlib.h"
#define LINE "_____________________"
#define TITLE "KEYBOARD"
#define AUTHOR "GROUP NINE"
int main()
{
char character= ' ';
printf("\n \t %s \n \t %s \n", LINE, TITLE); /* PROGRAMME HEADER */
printf("\t by %s \n \t %s \n\n", AUTHOR, LINE); /* PROGRAMME HEADER */
printf("Welcome toProgramme Beta\n\n");
printf("Enter any one keyboard character: ");
scanf_s( "%C", &character);
Please can someone help me correct this.
Thank You.