I have trying C and so far it's gone great but this has been driving me mad today.
I could swear scanf worked earlier but its crashing my programs?
I know you get this problem when you forget the pointer thing &
but this should work
#include<stdio.h>
int main()
{
int userinput;
scanf("%d",&userinput);
printf("%d",userinput);
getchar();
return 0;
}
Im using Vc++Express with .c on my source code.