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

Answer Posted / guest

Static is protected one and you cannot acess the variable
in other files/functions.It is declared in the top of the
file/function.The value retains tho,t the program.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does %c do in c?

584


What are the types of c language?

554


what are the 10 different models of writing an addition program in C language?

1437


What is printf () in c?

578


difference between object file and executable file

6093






What is the use of in c?

576


write a program to display all prime numbers

1454


What is the use of c language in real life?

527


How will you divide two numbers in a MACRO?

709


Explain how do you print an address?

658


what is the basis for selection of arrays or pointers as data structure in a program

3786


If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402

3246


How can I open files mentioned on the command line, and parse option flags?

591


Can we declare function inside main?

564


Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings

2248