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++?



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

Answer / 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

More C++ General Interview Questions

In which header file does one find isalpha() a) conio.h b) stdio.h c) ctype.h

0 Answers  


What do you mean by delegate? Can a user retain delegates?

0 Answers  


Does c++ vector allocate memory?

0 Answers  


What is a mutable member?

1 Answers  


What is long in c++?

0 Answers  


Which c++ compiler is best?

0 Answers  


What is a constructor and how is it called?

0 Answers  


Why null pointer is used?

0 Answers  


How do you differentiate between overloading the prefix and postfix increments?

0 Answers  


What is the basic of c++?

0 Answers  


Describe friend function & its advantages.

0 Answers   TCS,


What c++ is used for?

0 Answers  


Categories