Why static functions always uses static variables?

Answer Posted / harsha

context,object are created in RAM. context is created
once.static methods implementaion , static varibles loads
into context only once.All those staic members avilable to
each other obviously.

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is class in oop with example?

625


How do you answer polymorphism?

580


Is html an oop?

586


What is class encapsulation?

608


#include #include #include #include void insert(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); insert(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void insert(char *items, int count) { register int a, b; char t; for(a=1; a < count; ++a) { t = items[a]; for(b=a-1; (b >= 0) && (t < items[b]); b--) items[b+1] = items[b]; items[b+1] = t; } } design an algorithm for Insertion Sort

2172






What are the 4 pillars of oop?

676


State what is encapsulation and friend function?

703


Where You Can Use Interface in your Project

1431


What is coupling in oops?

600


What does and I oop mean?

620


How does polymorphism work?

641


Plese get me a perfect C++ program for railway/airway reservation with all details.

3433


What is the example of polymorphism?

562


What is polymorphism explain?

695


What is object and example?

606