# 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 / shruti
the syntax for writting the macro is wrong..
we can't have "=" sign while writing macro..
i.e. #define -----
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
to find the closest pair
Describe the steps to insert data into a singly linked list.
What are the advantages of c preprocessor?
What is static memory allocation?
Explain how can you tell whether two strings are the same?
What is c language and why we use it?
What is malloc and calloc?
What is structure pointer in c?
Why does notstrcat(string, "!");Work?
Explain what is the difference between null and nul?
What is size of union in c?
What is scanf_s in c?
write a program to find out prime number using sieve case?
Differentiate fundamental data types and derived data types in C.
Why are all header files not declared in every c program?