what are the static variables

Answer Posted / nitin gupta

a static variable is shared by all the the instances of a
class.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what value is returned to operating system after program execution?

1599


What are header files why are they important?

576


any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()

693


Describe the difference between = and == symbols in c programming?

773


find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }

1855






What is array in c with example?

610


‎How to define structures? · ‎

622


An organised method of depicting the use of an area of computer memory used to signify the uses for different parts of the memory a) swap b) extended memory c) memory map d) all of the above

703


What is the purpose of scanf() and printf() functions?

720


What is a list in c?

613


What are reserved words with a programming language?

599


When is the “void” keyword used in a function?

827


a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if

699


What is optimization in c?

562


Can we change the value of #define in c?

582