Vidyalelo
C Programming · Q46

C Preprocessor

Programming · C Programming · question 46

Q46

What will be the output of the following C code? #include #define Shyam(x) #x int main() int marks=100; printf("value of %s is = %d ",Shyam(marks),marks); return 0;

A.
error
B.
value of marks=100
Answer
C.
value of=100
D.
100

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board