Answer Posted / 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 View All Answers
What is wrong with this initialization?
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?
What is the use of a ‘ ’ character?
Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?
What is the -> in c?
What is the difference between local variable and global variable in c?
What are the different types of objects used in c?
Explain modulus operator. What are the restrictions of a modulus operator?
How do I determine whether a character is numeric, alphabetic, and so on?
Which one would you prefer - a macro or a function?
List some applications of c programming language?
What is meant by type specifiers?
What is Dynamic memory allocation in C? Name the dynamic allocation functions.
How can I convert a number to a string?
Explain what are preprocessor directives?