# 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
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / sivasyam
with out using conditional opraters and conditional
statments(i.e &,| etc, and if,whileand etc.,) find the
bigeesst value between two values
| Is This Answer Correct ? | 2 Yes | 1 No |
Can we declare a function inside a function in c?
#include<stdio.h> main(0 { printf("\n %d %d %d",sizeof(3),sizeof("3"),sizeof(3)); }
How do we declare variables in c?
FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above
If errno contains a nonzero number, is there an error?
Why is c faster?
1.int a=10; 2.int b=20; 3. //write here 4.b=30; Write code at line 3 so that when the value of b is changed variable a should automatically change with same value as b. 5.
Array is an lvalue or not?
How do you construct an increment statement or decrement statement in C?
What is the difference between functions getch() and getche()?
What is a structure in c language. how to initialise a structure in c?
what is the use of a array in c