What are local and global variables?

Answer Posted / udayakumar

local variables are the variables which are declared with in
a function and the scope of that variables are only within
that function.Global variables are the variables which are
declared globally.Since it is declared globally it can
accessible to all the functions inside the program...

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it possible to have a function as a parameter in another function?

842


Are pointers integers in c?

818


Explain how can type-insensitive macros be created?

782


What is the significance of c program algorithms?

877


I have a varargs function which accepts a float parameter?

797


how logic is used

1714


How #define works?

851


Why does everyone say not to use gets?

803


What is the use of structure padding in c?

801


How can you check to see whether a symbol is defined?

826


What is array in C

926


What is a static variable in c?

869


What is the ANSI C Standard?

1005


can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......

1628


Is c dynamically typed?

884