+1 vote
in Technology by (323k points)
Can variables belonging to different scope have same name in C Programming? If so show an example ?

1 Answer

0 votes
by (323k points)

Variables belonging to different scope can have same name as in the following code snippet.

int var;

void f() { 

   int var; 

}

main() { 

   int var; 

}

...