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 typedef in structure in c?
Explain what is the benefit of using const for declaring constants?
What is declaration and definition in c?
What is scope rule of function in c?
Can we declare variables anywhere in c?
What is the scope of global variable in c?
Is it better to use malloc() or calloc()?
What does the && operator do in a program code?
What are the different types of endless loops?
number of times a digit is present in a number
What are register variables? What are the advantage of using register variables?
Is null equal to 0 in sql?
what is the function of pragma directive in c?
write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.
What is malloc return c?