# 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 |
How will you declare an array of three function pointers where each function receives two ints and returns a float?
#ifdef TRUE int I=0; #endif main() { int j=0; printf("%d %d\n",i,j); }
is c language is a object oreinted language?
can u write a program in C, which does not use = (eqaul)or any arithmatic assignment(like -=,+=,*= etc) operator to swap to number?
How can a program be made to print the name of a source file where an error occurs?
What is the advantage of a random access file?
Write a program that receives as input a number omaadel-n-print, four digits.
What is meant by high-order and low-order bytes?
how to create duplicate link list using C???
What is && in c programming?
can we print any string in c language without using semicolon(;)(terminator) in whole program.
Write a program to show the change in position of a cursor using c