How to print a variable name in C?
How to print and store a variable name in string variable?
We strongly recommend you to minimize your browser and try this yourself first
In C, there’s a # directive, also called ‘Stringizing Operator’, which does this magic. Basically # directive converts its argument in a string.
We can also store variable name in a string using sprintf() in C.
This article is contributed by Abhay Rathi. Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above