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 is selection sort in c?
Why does notstrcat(string, "!");Work?
What is .obj file in c?
Is a house a shell structure?
How can I implement sets or arrays of bits?
Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.
When can a far pointer be used?
What are dangling pointers in c?
What is the difference between call by value and call by reference in c?
Is c# a good language?
What is a static variable in c?
Differentiate between calloc and malloc.
what is a constant pointer in C
What is the size of empty structure in c?
string reverse using recursion