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
What are runtime error?
Why doesnt this code work?
Is main is user defined function?
Is r written in c?
the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters
what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?
void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }
What are the different types of constants?
how to find binary of number?
Can we replace the struct function in tree syntax with a union?
Explain what math functions are available for integers? For floating point?
why return type of main is not necessary in linux
What is the right type to use for boolean values in c?
to find the closest pair
What is static and volatile in c?