What is meant by global static? why we have to use static
variable instead of Global variable

Answer Posted / vaibhav

global static means the static value declared as a
global.using this we can share same copy of that variable.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do string constants represent numerical values?

1122


what is recursion in C

806


Combinations of fibanocci prime series

1338


Can true be a variable name in c?

738


Explain how can you avoid including a header more than once?

809


On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area

901


What are the Advantages of using macro

885


Can we use visual studio for c?

766


What is wild pointer in c?

795


Why is it usually a bad idea to use gets()? Suggest a workaround.

1341


What is the difference between malloc() and calloc() function in c language?

809


Write a program to print factorial of given number using recursion?

784


main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none

1011


Explain how do you determine whether to use a stream function or a low-level function?

821


Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.

1757