# 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
to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?
Explain high-order bytes.
How can you find the exact size of a data type in c?
Write a program to use switch statement.
What is the size of enum in c?
What is meant by recursion?
Give me the code of in-order recursive and non-recursive.
What is the difference between #include and #include 'file' ?
Is return a keyword in c?
Why is it important to memset a variable, immediately after allocating memory to it ?
What is the purpose of clrscr () printf () and getch ()?
Explain about C function prototype?
console I/O functions means a) the I/O operations done on disk b) the I/O operations done in all parts c) the input given through keyboard is displayed VDU screen d) none of the above
What is the difference between ++a and a++?
What are the general description for loop statement and available loop types in c?