Ravina
unread,Aug 1, 2010, 5:40:41 AM8/1/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Knowledge Test
o/p=> 1233Crapy code
In if(printf("%d",printf("123")),0)
printf("123") print 123 and return no of char i.e 3
thus printf("%d",3) print 3 and return 1
now if (1,0) evaluate as false bcoz last element which
compiler found in if condition is 0
i.e false (if it is like if(2,0,3,0,1) last element 1 i.e
true)
and in last else printf print =>Crapy code
Hope it is clear to every one