application of static variables in real time
ya.. well before going to know the static variable u need to know the diff b/w static and general variable.
in case of general variable every object have own memory.In case of static variabale all objects share the static data members.
so conclusion is:general members hv own memory so there is no relation b/w one object data to other object data .Static data it maintains relation
uses:
when we open some websites in the homepage we found "hits".It denotes how many users open this site so far.so the "hits" is a integer type we declare it as a static member when i try to open the site my browser acts as a one object and increment the hits value and other person open the site the same increment variable is accessed by other person. my id: venugopal.palavalasa@gmail.com
| Is This Answer Correct ? | 4 Yes | 2 No |
Why do we use namespace feature?
write a c program to find largest of three numbers using simple if only for one time.
What do you mean by Recursion Function?
What are the advantages of using linked list for tree construction?
the format specified for hexa decimal is a.%d b.%o c.%x d.%u
What is %d used for?
Find string palindrome 10marks
5 Answers Honeywell, Infosys, Riktam, Roland,
what is the difference between #include<> and #include”…”?
plz answer.... write a program that reads line (using getline) e.g."345", converts each line to an integer using "atoi" and computes the average of all the numbers read. also compute the standard deviation.
Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;
What does the c preprocessor do?
Is multithreading possible in c?