what are the static variables

Answer Posted / smriti patnaik

static variables are variables that are initiated only once
in a memory,suppose u have initiated a variable as static
everytime u visit a iteration the value is changed 4m the
initialised value,not like auto variables where the values
remain same everytime u visit a iteration

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Create a simple code fragment that will swap the values of two variables num1 and num2.

814


How can you restore a redirected standard stream?

611


Is swift based on c?

641


What is the difference between text files and binary files?

679


Why is not a pointer null after calling free?

599






What are register variables in c?

576


please give me some tips for the placement in the TCS.

1634


Without Computer networks, Computers will be half the use. Comment.

1878


Where are some collections of useful code fragments and examples?

717


What is preprocessor with example?

590


Differentiate between a for loop and a while loop? What are it uses?

676


What is meant by high-order and low-order bytes?

657


the real constant in c can be expressed in which of the following forms a) fractional form only b) exponential form only c) ascii form only d) both a and b

1907


Can you please compare array with pointer?

618


Explain enumerated types in c language?

606