Answer Posted / aravind
Extern is nothing but a memory storage type.If we declare extern before the function than the variable can be accessed by that function not only locally but externally too.
extern int a=4
Int fun (int x)
{
x=a;
print gives a=4
Is This Answer Correct ? | 8 Yes | 19 No |
Post New Answer View All Answers
What is meant by keywords in c?
What is #define?
What is the difference between far and near ?
How does pointer work in c?
What is extern c used for?
What are c preprocessors?
Process by which one bit pattern in to another by bit wise operation is?
Can we change the value of constant variable in c?
find out largest elemant of diagonalmatrix
What is %g in c?
Should I learn data structures in c or python?
A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none
Why functions are used in c?
Is the exit() function same as the return statement? Explain.
a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f