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 the different types of objects used in c?
Write a code to determine the total number of stops an elevator would take to serve N number of people.
What is the use of function in c?
What is a substring in c?
what is ur strangth & weekness
What are c identifiers?
What’s the special use of UNIONS?
What is binary tree in c?
provide an example of the Group by clause, when would you use this clause
What are loops c?
Which type of language is c?
Write a program to swap two numbers without using third variable?
Does c have function or method?
What is void pointers in c?
Which one would you prefer - a macro or a function?