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
Is a house a shell structure?
How variables are declared in c?
How was c created?
What is exit() function?
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
Are the outer parentheses in return statements really optional?
write a program to copy the string using switch case?
What is the use of static variable in c?
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?
What is enumerated data type in c?
What is the purpose of main( ) in c language?
What is use of null pointer in c?
Can a function argument have default value?
What is the difference between the local variable and global variable in c?
How to set file pointer to beginning c?