Learn basic concept of c , c++ and python programming in regularcodes.com
Find the name of given variable in c
There are possible to get variable name of c. use stringizing operator and micro defined function.
#define get_name(variable) #variable
Note that get_name are user defined you can change the name or parameter of this function
How to use this function.
1) Accepted any type of data and variable and constant strings and pointers.
2) Accepted value is a constant string. there are dont matter if you are passing varible name, constant string or pointer value. given value as accepted the form of only constant string.
- Dynamic allocation of array in c
- Count occurrence of duplicate element
- C program to count frequency of each element in an array
- Program for matrix multiplication in c
- Segregate 0s and 1s in an array
- Check for Balanced Parentheses in an expression
- Find the height of a binary tree without recursion
- Binary search tree print zig zag level order