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 is assignment operator?

626


What is pointer to pointer in c language?

595


process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,

1892


What are local static variables?

619


Which of the following operators is incorrect and why? ( >=, <=, <>, ==)

668






What is null pointer constant?

596


all c language question

1876


Explain the difference between call by value and call by reference in c language?

647


Why doesn't C support function overloading?

1619


What is the total generic pointer type?

728


can we have joblib in a proc ?

1656


Why pointers are used?

633


Who developed c language and when?

586


When is a void pointer used?

678


How do I use void main?

635