Variables problem.

blabla2028's Avatar
Light Poster
I am using Dev-C++ compiler.
I wrote simple C code that does this:

Code:
#include<stdio.h>
int main()
{
int a,b;
scanf("%d",a);
b=a;
printf("\n %d",b);
}
and my app. crashes. It pops up a Send Error Report message.
What is the problem with the code?
Thanks in advance.
0
subha040680's Avatar, Join Date: Apr 2008
Newbie Member
scanf("%d",a);
will be
scanf("%d",&a);