1
Can variables belonging to different scope have same name in C Programming? If so show an example ?

Open 1 Answers 49 Views Technology
Can variables belonging to different scope have same name in C Programming? If so show an example ?

1 Answer

0

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

int var;

void f() { 

   int var; 

}

main() { 

   int var; 

}

by (280k points)
...