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 the use of sizeof?
Why do we use main function?
Can one function call another?
Are comments included during the compilation stage and placed in the EXE file as well?
Can we declare function inside main?
Do you know the difference between malloc() and calloc() function?
What is pre-emptive data structure and explain it with example?
How can I dynamically allocate arrays?
Is fortran faster than c?
#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }
What is a header file?
Explain what math functions are available for integers? For floating point?
Can 'this' pointer by used in the constructor?
What is the most efficient way to count the number of bits which are set in an integer?
What is indirection?