# 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 of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above
FILE PROGRAMMING
What are qualifiers?
Apart from dennis ritchie who the other person who contributed in design of c language.
What is an identifier?
What do you mean by a sequential access file?
When should a type cast be used?
Is array a primitive data type in c?
Is c still relevant?
Is javascript written in c?
What is main return c?
What is the purpose of 'register' keyword?
Is c easy to learn?
How do you initialize pointer variables?
What are the modifiers available in c programming language?