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
What are the various arithmetic operators in c++?
When should I use unitbuf flag?
Which c++ operator cannot overload?
What are c++ tokens?
I want to write a C++ language program that: 1. Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. The program should work for squares of all side sizes between 1 and 20.
What is a static element?
What are the advantages of using a pointer?
why is iostream::eof inside a loop condition considered wrong?
What is virtual destructor? What is its use?
What is nested class in c++?
Is it possible to provide special behavior for one instance of a template but not for other instances?
Can member data be public?
Write a program to show polymorphism in C++?
What is the best book for c++ beginners?
What is a buffer c++?