Saturday, August 2, 2014

interview question for c

Find out output of the following code ..
   
#include<stdio.h>
#define SUM  x+y+z;
main()
   {
   int x=7,y=6,z=4;
        printf("%d",2*SUM/2);

 getch();
}

Output:
       22
     Exp..
            2*7+6+4/2=22

No comments:

Post a Comment

Featured Post

What is JavaScript? What is the role of JavaScript engine?

  The JavaScript is a Programming language that is used for converting static web pages to interactive and dynamic web pages. A JavaScript e...