scanf!!!!!!!!!!!!

#include<stdio.h>
#include<conio.h>

main(){
int i=1;
int a=2;
clrscr();
if(scanf("%d",(i==3)>&a))
{
printf("%d\n",a);4
}
}


Can anybody explain me the working of if statement here!!!!
The scanf function returns an int. Zero is taken as false, non-zero as true. The number is the number of items read.

http://www.cplusplus.com/reference/clibrary/cstdio/scanf/
Topic archived. No new replies allowed.