What is the difference between static global and global ?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are multiple inheritances (virtual inheritance)?

581


What are the sizes and ranges of the basic c++ data types?

585


What is the use of dot in c++?

618


Inline parameters : What does the compiler do with the parameters of inline function, that can be evaluated in runtime ?

2014


A company pays its salespeople on a commission basis. The salespeople receive $200 per week plus 9 percent of their gross sales for that week. For example, a saleperson who sells $5000 worth of merchandise in a week receives $200 plus 9 percent of $5000, or a total of $650. You have been supplied with a list of items sold by each salesperson. The values of these items are as follows: Item Value A 239.99 B 129.75 C 99.95 D 350.89 Write a program that inputs one salesperson's items sold in a week (how many of item A? of item B? etc.) and calculates and displays that salesperson's earnings for that week.

3404






What are the types of array in c++?

616


What is the protected keyword used for?

614


How do I download c++?

568


What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?

564


What is class invariant in c++?

742


Who created c++?

572


What is heap sort in c++?

596


Which sort is best for the set: 1 2 3 5 4 a) Quick Sort b) Bubble Sort c) Merge Sort

657


What does 7/9*9 equal ? a) 1 b) 0.08642 c) 0

578


Out of fgets() and gets() which function is safe to use?

641