Question:What would be printed on the standard output as a result of the following code snippet?
#define func(t, a, b) { t temp; temp=a; a=b; b=temp; }
main()
{
        int a=3, b=4;
        float c=4.5, d = 5.99;
        func(int, a, b);
        func(float, c, d);
        printf("%d %d ", a, b);
        printf("%.2f %.2f\n", c, d);
}
 

A Results in Compilation Error 

B 3 4 5.99 4.50 

C 3 4 4.50 5.99 

D 4 3 5.99 4.50 

E None 

+ Answer
+ Report
Total Preview: 758

Copyright © 2024. Powered by Intellect Software Ltd