Difference between static global and global?

Answer Posted / ravi.g

global static variables have no file scope since they can
not be accessed from other files by using extern keyword

Global variables have the file scope since they can be
accessed from other files using extern keyword

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does code-bloating occur in c++?

742


What is linked list in c++?

689


What is a c++ vector?

585


What are the differences between the function prototype and the function defi-nition?

609


Write a c program for binary addition of two 8 bit numbers.

3660






What does n mean in c++?

624


Why is c++ difficult?

598


Explain the auto storage classes in c++.

597


What is difference between c++ 11 and c++ 14?

568


What are the 3 levels of programming languages?

531


Describe protected access specifiers?

672


Write about the members that a derived class can add?

564


What is a pointer with example?

657


Will a recursive function without an end condition every quit, in practice a) Compiler-Specific (Some can convert to an infinite loop) b) No c) Yes

577


What is this weird colon-member (" : ") syntax in the constructor?

539