what is the output?
#define fun(a,b,t) (g ##t=(a),(a)=(b),(b)=g##t)
float gfloat;
main()
{
float a=1.12,b=3.14;
fun (a,b,float);
printf("na=%4.2f,b=%4.2f",a,b);
}
A)Error in Defining Macro
B)a=1.12,b=3.14
C)a=3.14,b=1.12
D)None of the Above

Answer Posted / santhoo035

a=3.14,b=1.12

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is a house a shell structure?

688


How variables are declared in c?

567


How was c created?

586


What is exit() function?

558


Write a function expand(s1,s2) that expands shorthand notations like a-z in the string s1 into the equivalent complete list abc...xyz in s2 . Allow for letters of either case and digits, and be prepared to handle cases like a-b-c and a-z0-9 and -a-z. z-a:zyx......ba -1-6-:-123456- 1-9-1:123456789987654321 a-R-L:a-R...L a-b-c:abbc

5053






Are the outer parentheses in return statements really optional?

570


write a program to copy the string using switch case?

2395


What is the use of static variable in c?

593


Given an array of 1s and 0s arrange the 1s together and 0s together in a single scan of the array. Optimize the boundary conditions?

972


What is enumerated data type in c?

617


What is the purpose of main( ) in c language?

614


What is use of null pointer in c?

563


Can a function argument have default value?

666


What is the difference between the local variable and global variable in c?

526


How to set file pointer to beginning c?

662