# 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
Where can I get an ansi-compatible lint?
What is bin sh c?
Explain the difference between strcpy() and memcpy() function?
Why do we use & in c?
what will be the output for the following main() { printf("hi" "hello"); }
how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.
Explain zero based addressing.
Write a c program to build a heap method using Pointer to function and pointer to structure ?
Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.
Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?
What is the size of enum in bytes?
The file stdio.h, what does it contain?
How can I write functions that take a variable number of arguments?
Which programming language is best for getting job 2020?
#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }