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
When a c file is executed there are many files that are automatically opened what are they files?
Explain is it better to bitshift a value than to multiply by 2?
What is the explanation for cyclic nature of data types in c?
Explain the use of bit fieild.
What do you mean by dynamic memory allocation in c? What functions are used?
What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file
What are the similarities between c and c++?
What is the difference between call by value and call by reference in c?
What is the purpose of scanf() and printf() functions?
What is pass by value in c?
Explain the use of 'auto' keyword in c programming?
How do you sort filenames in a directory?
What is the benefit of using const for declaring constants?
Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.
Write programs for String Reversal & Palindrome check