Answer Posted / ashish
Local:-
These variables only exist inside the specific function that
creates them. They are unknown to other functions and to the
main program. As such, they are normally implemented using a
stack. Local variables cease to exist once the function that
created them is completed. They are recreated each time a
function is executed or called.
Global:-
These variables can be accessed (ie known) by any function
comprising the program. They are implemented by associating
memory locations with variable names. They do not get
recreated if the function is recalled.
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Can you apply link and association interchangeably?
What language is windows 1.0 written?
Why is sprintf unsafe?
Describe the order of precedence with regards to operators in C.
How can I handle floating-point exceptions gracefully?
write a program to rearrange the array such way that all even elements should come first and next come odd
How does struct work in c?
how to introdu5ce my self in serco
a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);
What are the uses of a pointer?
Why is not a pointer null after calling free?
#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??
how to make a scientific calculater ?
Do you have any idea how to compare array with pointer in c?
Explain what will be the outcome of the following conditional statement if the value of variable s is 10?