# 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


Please Help Members By Posting Answers For Below Questions

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?

1563


Explain high-order bytes.

670


How can you find the exact size of a data type in c?

595


Write a program to use switch statement.

654


What is the size of enum in c?

612






What is meant by recursion?

628


Give me the code of in-order recursive and non-recursive.

880


What is the difference between #include and #include 'file' ?

602


Is return a keyword in c?

594


Why is it important to memset a variable, immediately after allocating memory to it ?

1550


What is the purpose of clrscr () printf () and getch ()?

591


Explain about C function prototype?

601


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

651


What is the difference between ++a and a++?

686


What are the general description for loop statement and available loop types in c?

681