Difference between static global and global?

Answer Posted / veera

hello Sheela u r question is good, but u can access global
static through extern key word in other file,it take the
value but we can,t change the value in that file.

But in case of global variable it's possible to change
the value in other file.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use setw in c++?

635


What is the use of typedef?

630


What is the basic of c++?

592


What is enum class in c++?

702


How can you differentiate between inheritance and implementation in c++?

637






Describe linked list using C++ with an example.

641


What is a catch statement?

577


What is a map in c++?

576


Explain function overloading and operator overloading.

615


Is c or c++ more useful?

567


Are strings mutable in c++?

688


Define a nested class.

611


What is c++ coding?

647


Do vectors start at 0 c++?

524


What is an inline function in c++?

621