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
Can the sizeof operator be used to tell the size of an array passed to a function?
How can I delete a file?
Where is volatile variable stored?
Why main function is special give two reasons?
If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402
What happens if a header file is included twice?
What is the use of sizeof () in c?
Write a simple code fragment that will check if a number is positive or negative.
Write a c program to demonstrate character and string constants?
Explain #pragma statements.
What is ambagious result in C? explain with an example.
How can I generate floating-point random numbers?
FILE PROGRAMMING
What is the purpose of main() function?
What is graph in c?