Can you please what is the difference between usage of extern variable and pointer in c.
Can you please what is the difference between usage of extern variable and pointer in c.
extern means the variable is declared in another file.
A pointer is just a variable whose value is a memory address.
Quzah.
Hope is the first step on the road to disappointment.
Thanks, but when we use which(extern var/pointer)?
If you are using a variable that is declared in another file, you can use extern.
If you have the memory address of a variable, you can use a pointer.
Post some code if you want us to be more specific.
Thanks Inequity.