what is difference between static and non-static variables

Answer Posted / sengar

static variable will not be change value all time but non
static value can be changed according requirement .
without giving any value static variable automatically
initialize by zero but in non-static case not the same
case.

Is This Answer Correct ?    11 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe the advantage of an external iterator.

837


What is function prototyping? What are its advantages?

844


What is friend class in c++ with example?

726


How do you establish a has-a relationship?

850


What is java and c++?

916


What is a storage class?

933


What is stoi in c++?

955


Describe delete operator?

862


Why are arrays usually processed with for loop?

1022


What is a flag in c++?

833


Can I make ios apps with c++?

795


How is c++ used in the real world?

809


the maximum length of a character constant can be a) 2 b) 1 c) 8

919


What is atoi in c++?

852


Difference between an inspector and a mutator

1091