# 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 |
Explain why C language is procedural?
What is function what are the types of function?
5) Write a program that takes a 3 digit number n and finds out whether the number 2^n + 1 is prime, or if it is not prime find out its factors.without using big int and exponential function
what is the difference between const volatile int i & volatile const int j;
Program to simulate second clock
Write a program to reverse a linked list in c.
What is difference between structure and union?
how is the examination pattern?
Where is c used?
21. #define square(x) x*x main() { int i; i = 64/square(4); printf("%d",i); }
Explain the use of fflush() function?
how the size of an integer is decided? - is it based on processor or compiler or OS?
19 Answers HCL, JPR, Microsoft, nvidia,