Call Support +91-85588-96644
TCYonline

Login

Sign Up

Please enter a Username or Email ID
Please enter a password
Keep me logged in
Please enter your name
Please enter your mobile number
You can't leave Captcha Code empty
By submitting this form, you agree to the Terms & Privacy Policy.
OR

Sign Up via Facebook

Sign Up via Google

Sign Up via Twitter

Download Software
Tests given

Download TCY App

App Image

A static variable is

 
a variable, the value of which keeps on changing through out the program
a variable, the value of which increases in a uniform order
a variable, the value of which decreases constantly
a variable, the value of which remains constant through out the program

Reply


Please type your answer before submitting.
Submit

Wrong answer, in C "A variable, the value of which remains constant through out the program" is 'const' not the static. Static variable is variable that is initialized once and if you want you can change it's value in your program. Static variable can have different scopes e.g. class scope, function scope, file scope etc.. One more point, static variable can be accessed in it's scope only, but they are in memory till program exit.