Error says: Debug Error! ... Run-time Check failure#2 - Stack around the variable 'a' was corrupted.
This is the code
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
char a;
printf("Enter letter: ");
scanf("%1s", &a);
printf("letter: %c\n",a);
return 0;
}

New Topic/Question
Reply



MultiQuote




|