As we have discussed about two parts which are most important to make your base strong.we have gone through many placement papers and found the level of c question which can be asked for a fresher, and we are sharing only those question.
So....ya, I'm here again. More C programs. Yayyy! So...umm...suffer through the article, or something.
- main(){int a= 0;int b = 20;char x =1;char y =10;if(a,b,x,y)printf("hello");}Answer:helloExplanation:The comma (,) operator has associativity from left to right. Only the rightmost value is returned and the other values are evaluated and ignored. Thus the value of last variable y is returned to check in 'if'. Since it is a non zero value 'if' becomes true so, "hello" will be printed.
FULL DOCUMENT IS HERE SO DOUBLE CLICK TO GET THIS PDF
0 comments:
Post a Comment