# define prod(a,b)=a*b
main()
{
int x=2;
int y=3;
printf("%d",prod(x+2,y-10)); }
the output of the program is
a.8
b.6
c.7
d.none
Answer Posted / arun raj
It will lead to compilation error..
Note: # define prod(a,b)=a*b
'=' is not allowed with #define
regards,
Arun Raj
Is This Answer Correct ? | 19 Yes | 1 No |
Post New Answer View All Answers
Which driver is a pure java driver
How can I recover the file name given an open stream?
How do I copy files?
What is a loop?
What is structure packing in c?
Explain #pragma statements.
What are actual arguments?
What are volatile variables in c?
What is the use of bitwise operator?
What is a far pointer in c?
What is the size of enum in bytes?
When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?
Write a C program to count the number of email on text
the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset
Suppose we have a table name EMP as below. We want to perform a operation in which, I want to change name ‘SMITH’ from as ‘SMITH JAIN’. Also I want to change the name of the column from ENAME to E_NAME. EMPNO ENAME JOB MGR HIREDATE SAL 7369 SMITH Coder 7902 17-DEC-80 800 7499 ALLEN SALESMAN 7698 20-FEB-81 1600 7521 WARD SALESMAN 7698 22-FEB-81 1250