Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is difference between static and non-static variables

Answer Posted / sv

static variable retains its value like a global variable,
but visible with in the scope.
While non static variable will not be retained one it come
out of the scope or block. Again the visibility is local to
the block.

Is This Answer Correct ?    53 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If a header file is included twice by mistake in the program, will it give any error?

1008


Is c++ still in demand?

1114


What you know about structures in C++?

1021


What is size of string in c++?

939


What is rtti in c++?

1074


What is the best c++ book?

1225


Can we use this pointer in a class specific, operator-overloading function for new operator?

1065


What do nonglobal variables default to a) auto b) register c) static

1113


can any one help to find a specific string between html tags which is changed to a sting.. weather.html looks (for location) is somewhere #include #include #include using namespace std; string find_field(string myPage,string); int main (void) { string page, line, location, temperature; ifstream inputFile("weather.xml"); while(getline(inputFile, line)) { page.append(line); line.erase(); } // Now page is a string that contains the whole xml page // Here you need to write something that finds and // extracts location and temperature from the XML // data in the string page and stores them in // the strings location and temperature respectively location=find_field(page,"location"); temperature=find_field(page,"temp_c"); cout << "Location: "<

2010


Which software is best for c++ programming?

1002


Can you be able to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?

1063


What are the types of pointer?

1047


What is general format for a prototype?

989


What is capacity in vector in c++?

952


Can the operator == be overloaded for comparing two arrays consisting of characters by using string comparison?

1033