# define x=1+4;
main()
{
int x;
printf("%d%d",x/2,x/4);
}
Answer Posted / karthik
the preprocessor directive is not written correctly
so u r going to get CE
#define x 1+4
void main()
{
printf("%d%d",x/2,x/4);
}
will work fine and give output as 32
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
Explain modulus operator. What are the restrictions of a modulus operator?
Write a function expand(s1,s2) that expands shorthand notations like a-z in the string s1 into the equivalent complete list abc...xyz in s2 . Allow for letters of either case and digits, and be prepared to handle cases like a-b-c and a-z0-9 and -a-z. z-a:zyx......ba -1-6-:-123456- 1-9-1:123456789987654321 a-R-L:a-R...L a-b-c:abbc
What is .obj file in c?
Is javascript written in c?
Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)
Explain why c is faster than c++?
What does %c mean in c?
hi any body pls give me company name interview conduct "c" language only
What are the advantages of external class?
How can I determine whether a machines byte order is big-endian or little-endian?
How can I prevent another program from modifying part of a file that I am modifying?
What is the purpose of void in c?
Under what circumstances does a name clash occur?
Apart from dennis ritchie who the other person who contributed in design of c language.
What is strcmp in c?