what is difference between static and non-static variables

Answer Posted / arun kumar

Initialization of static variables is at compile time,
but in case of non-static variables is at run time.

Is This Answer Correct ?    6 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of 'this' pointer?

765


In which situation the program terminates before reaching the breakpoint set by the user at the beginning of the mainq method?

585


Can we distribute function templates and class templates in object libraries?

585


what you know about c++?

661


Why do we use vector in c++?

599






What are pointers, when declared, intialized to a) NULL b) Newly allocated memory c) Nothing. Its random

651


What is a forward referencing and when should it be used?

575


If dog is a friend of boy, is boy a friend of dog?

571


Is c++ still in demand?

632


What is a list c++?

570


How to get the current position of the file pointer?

554


How will you call C functions from C ++ and vice-versa?

657


What does extern mean in a function declaration in c++?

699


give me an example for testing a program showing the test path .show how the test is important and complex.

2419


Define 'std'.

604