Search:
Forum
General C++ Programming
scanf!!!!!!!!!!!!
scanf!!!!!!!!!!!!
Aug 20, 2012 at 5:21pm UTC
sibendudey
(8)
#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!!!!
Aug 20, 2012 at 5:35pm UTC
Moschops
(7244)
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.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs