I have a program test.c
int global_var=10;
printf(\"Done\");
i did
gcc -g test.c -o test
My query is I
No. We only have variable names so humans don't get confused . After your program gets turned into assembly and eventually machine code, the computer doesn't care what you name your variables.
Alternatively you could use a structure in which you would store the value and the name as a string:
struct tag_name {
char *member1;
int member2;
};