Some annoying C programs-Part III (FREQUENTLY ASKED QUESTION MUST READ)


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.
  1. main()
    {
    int a= 0;int b = 20;char x =1;char y =10;
    if(a,b,x,y)
    printf("hello");
    }
    Answer:
    hello
    Explanation:
    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.


Here we are providing you the frequently asked technical C question in different placement derives.So don't forget to read this pdf/word document.


FULL DOCUMENT IS HERE SO DOUBLE CLICK TO GET THIS PDF


DOWNLOAD PDF :   

IF BUTTON IS NOT WORKING THEN : CLICK HERE

0 comments:

Post a Comment