[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

C Programming :: C Preprocessor - Discussion

Home > C Programming > C Preprocessor > MCQs Questions Discussion

13 / 34

What will be output of the following "c" code?

#include <stdio.h>
#define swap(a,b,c) c = a; a = b; b = c
int main()
{
int a = 3,b = 5; 
int temp; 
swap(a,b,temp);
printf("%d %d %d\n",a,b,temp);
}

A3 5 3

B3 3 5

C5 3 3

DCompilation Error

Answer: Option (Login/Signup)

Show Explanation

Asked In ::

Post Your Answer Here:     

No Discussion on this question yet!