# define x=1+4;
main()
{
int x;
printf("%d%d",x/2,x/4);
}
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / rama krishna sidhartha
The preprocessor syntax is wrongly written. It should be as
follows :
#define x 1+4
void main()
{
printf("%d%d",x/2,x/4);
}
There is no need of declaring the variable 'x' in
between 'main()' function since it is already declared
in '#define' directive.
The output will be : 3 and 2
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / banavathvishnu
x/2 will become 1+4/2=3
x/4 will become 1+4/4 = 2
| Is This Answer Correct ? | 3 Yes | 2 No |
main() { float a=8.8; double b=8.8; if(a==b) printf("Equal"); else printf("not equal"); getch(); } what is the output? with reason
Is c still relevant?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
#include<stdio.h> void main() { int a=5,b=6,c; int x=(a<b)+7; int y=(x==7)*9; int z=(c=x+y)*2; printf("%h %h %h",x,y,z); } What is the output? Explain it.
while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above
Write a program to generate prime factors of a given integer?
Is multithreading possible in c?
How to avoid structure padding in C?
Why malloc is faster than calloc?
what are the facialities provided by you after the selection of the student.
What is call by value in c?
What is the difference between union and anonymous union?