Examveda
Examveda

What will be the output of the following C code?
#include <stdio.h>
#define Shyam(x)  #x
int main()
{
    int marks=100;
    printf("value of %s is = %d\n",Shyam(marks),marks);
    return 0;
}

A. error

B. value of marks=100

C. value of=100

D. 100

Answer: Option B


This Question Belongs to C Program >> C Preprocessor

Join The Discussion

Related Questions on C Preprocessor