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

Why flag is used in c?

651


What does c mean in basketball?

561


What do you mean by invalid pointer arithmetic?

637


What is a macro in c preprocessor?

625


What is the scope of static variables in c language?

625






What is a wrapper function in c?

585


What are the types of data structures in c?

596


Explain what is a pragma?

590


What does dm mean sexually?

807


What is spark map function?

578


What is structure of c program?

601


What is this pointer in c plus plus?

592


Can we initialize extern variable in c?

629


Why does not c have an exponentiation operator?

627


What is sizeof int in c?

597