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
#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }
What will the preprocessor do for a program?
write a programming in c to find the sum of all elements in an array through function.
Why do we use header files in c?
if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0
Explain how many levels deep can include files be nested?
What is the use of getchar() function?
I came across some code that puts a (void) cast before each call to printf. Why?
How can I make it pause before closing the program output window?
What is page thrashing?
If null and 0 are equivalent as null pointer constants, which should I use?
What is new line escape sequence?
the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none
What is sizeof c?
Using which language Test cases are added in .ptu file of RTRT unit testing???