What is the difference between static global and global ?
Answers were Sorted based on User's Feedback
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 |
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 |
How to tokenize a string in c++?
You run a shell on unix system. How would you tell which shell are you running?
What does extern mean in a function declaration in c++?
How c functions prevents rework and therefore saves the programers time as wel as length of the code ?
What does the following code do: int c=0; cout< a) Undefined *Updated* b) 01 c) 00
What is guard code in c++?
What is implicit pointer in c++?
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;
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.
What is double in c++?
What is insertion sorting?
Is c# written in c++?