I wrote simple C program with scanf & printf like:
int n;
scanf("%d", &n);
int result = 7 - n;
printf("%d", &result);
and got this warning message:
warning: format '%d' expects argument of type 'int', but argument 2 has type 'int *' [-Wformat=] printf("%d", &result);
I dont understand why argument 2 has type int * instead of int? How can I solve this?
printfbefore posting here. - i486