/* C program to demonstrate example of Stringizing Operator */ #include <stdio.h> #define getVariableName(x) #x int main() { int student_age = 21; printf("value of %s is = %d\n", getVariableName(student_age), student_age); return 0; }
/* C program to demonstrate example of Stringizing Operator */ #include <stdio.h> #define getVariableName(x) #x int main() { int student_age = 21; printf("value of %s is = %d\n", getVariableName(student_age), student_age); return 0; }