@ anonuser :
Yes, there is a problem. When I try to access the variable in f3.c, the compiler picks the value of variable from any of the two files f1.c or f2.c.
User Profile
Collapse
-
cts is a just pointer to string.
similar to any other pointerLeave a comment:
-
Access variable using extern in a paricular file
Hi ALL,
My question is :
I have 3 files: f1.c f2.c and f3.c
I have declared variable int a; in f1.c and int a; in f2.c.
Now I want to use the variable int a; in f3.c . But this variable corresponds to the variable in f2.c . How to do this ????
Thanks
No activity results to display
Show More
Leave a comment: