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 declare a function pointer?
What is a rooted hierarchy?
Can class objects be passed as function arguments?
How to allocate memory dynamically for a reference?
Is recursion allowed in inline functions?
What is difference between class and function?
Who was the creator of c++?
Explain differences between alloc() and free()?
Evaluate: int fn(int v) { if(v==1 || v==0) return 1; if(v%2==0) return fn(v/2)+2; else return fn(v-1)+3; } for fn(7); a) 10 b) 11 c) 1
What is istream c++?
What is the hardest coding language to learn?
Is c++ the most powerful language?