Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the difference between static global and global ?

Answers were Sorted based on User's Feedback



What is the difference between static global and global ?..

Answer / leossk

Scope of the static variable is limited to that file, while
global is for all the files in that project space.

Is This Answer Correct ?    5 Yes 0 No

What is the difference between static global and global ?..

Answer / shakti singh khinchi

Scope of static variable is limited to different function
calls for a file, whereas global variable exists in multiple
files.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More C++ General Interview Questions

How to tokenize a string in c++?

0 Answers  


You run a shell on unix system. How would you tell which shell are you running?

0 Answers  


What does extern mean in a function declaration in c++?

0 Answers  


How c functions prevents rework and therefore saves the programers time as wel as length of the code ?

0 Answers  


What does the following code do: int c=0; cout< a) Undefined *Updated* b) 01 c) 00

0 Answers  


What is guard code in c++?

0 Answers  


What is implicit pointer in c++?

0 Answers  


class HasStatic { static int I; }; Referring to the sample code above, what is the appropriate method of defining the member variable "I", and assigning it the value 10, outside of the class declaration? a) HasStatic I = 10; b) int static I = 10; c) static I(10); d) static I = 10; e) int HasStatic::I = 10;

1 Answers   Quark,


A milk carton can hold 3.78 litres of milk. Each morning, a dairy farm ships cartons of milk to a local grocery store. The cost of producing one litre of milk is $0.38, and the profit of each carton of milk is $0.27. Write a C++ program that prompts the user to enter the total amount of milk produced in the morning. Then display the number of milk cartons needed to hold milk, the cost of producing milk, and the profit for producing milk.

2 Answers  


What is double in c++?

0 Answers  


What is insertion sorting?

0 Answers  


Is c# written in c++?

0 Answers  


Categories