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...

In how many ways we can initialize an int variable in C++?

Answer Posted / hrpynux@gmail.com

For example, to declare a variable of type int called x and initialize it to a value of zero from the same moment it is declared, we can write: int x = 0; A second method, known as constructor initialization (introduced by the C++ language), encloses the initial value between parentheses ( () ):

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does namespace mean in c++?

1078


If a base class is an adt, and it has three pure virtual functions, how many of these functions must be overridden in its derived classes?

1080


Are php strings immutable?

1053


What's the best free c++ profiler for windows?

1081


What is the main purpose of overloading operators?

1142


How do you establish an is-a relationship?

1158


Is c or c++ more useful?

1051


What are function prototypes?

1243


What does ctime() do?

1133


Does there exist any other function which can be used to convert an integer or a float to a string?

1078


Which one between if-else and switch is more efficient?

1070


Is swift faster than c++?

1023


Differentiate between realloc() and free().

1053


What is private inheritance?

1097


Are c and c++ similar?

1051