I am new to c programming.I use codeblocks on windows xp.I get an error when I run the following code
the error saysCode:#include <stdio.h> #include <conio.h> int main() { int a; printf("enter a number\n"); scanf("%d",&a); printf("you entered %d",&a); return 0; }
format %d expects type int
but argument 2 has type int.
please solve this