# 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 |
What is break in c?
what is stack , heap ,code segment,and data segment
What is main () in c?
Identify the operators that is not used with pointer a. && b. # c. * d. >>
What is signed and unsigned?
Is using exit() the same as using return?
What is string function in c?
Finding first/last occurrence of a character in a string without using strchr( ) /strrchr( ) function.
main() { int a=0; if(a=0) printf("Ramco Systems\n"); printf("India\n"); } output?
What are the two types of structure?
Explain about the functions strcat() and strcmp()?
Write a program of advanced Fibonacci series.