2. What does static variable mean?

Answers were Sorted based on User's Feedback



2. What does static variable mean?..

Answer / sai

static variable in c defined as the value of the static
variable is fixed in that program.
That means the chages will not effect the static variable
values.

Is This Answer Correct ?    3 Yes 0 No

2. What does static variable mean?..

Answer / avik bagh

A static variable is a variable that you can call and use without using an object of the class it is a part of. You can use a static variable using just the class name.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More C Interview Questions

2) Write a program that will help Air Traffic Control for an airport to view the sequence of flights ready for take-off. The airport can accommodate 10 flights waiting for take-off at any point in time. Each flight has a unique 3 digit numeric identifier.  Each time a flight takes-off, Air Traffic Control adds a flight to the waitlist. Each time a flight is added to the waitlist, the list of flights waiting to take-off must be displayed.  When a flight is cleared for take-off, Air Traffic Control removes the flight from the waitlist. Each time a flight takes-off, the list of flights waiting to take-off must be displayed.  Sequence of take-off is the sequence of addition to the waitlist

0 Answers  


Write a program to show the workingof auto variable.

2 Answers   Infotech,


What is nested structure with example?

0 Answers  


What are the various types of control structures in programming?

0 Answers  


What is the advantage of a random access file?

0 Answers  






write a c program to remove all the duplicate characters in a string and replace with single character? ex:-input- AAABBBCCC output- ABC

2 Answers   HCL,


any "C" function by default returns an a) int value b) float value c) char value d) a & b

0 Answers  


What are the rules for identifiers in c?

0 Answers  


Who is the founder of c language?

0 Answers  


How to declare a variable?

0 Answers  


How would you write qsort?

1 Answers  


if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0

0 Answers  


Categories