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

Explain method of creating object in C++ ?

1154


Explain the difference between new() and malloc() in c++?

1176


What are friend functions in C++?

1118


How do we balance an AVL Tree in C++?

1186


What is difference between malloc()/free() and new/delete?

1222


What is a tree in c++?

1020


What is the difference between cin.read() and cin.getline()?

1130


Can a new be used in place of old mallocq? If yes, why?

1143


Draw a flow chart and write a program for the difference between the sum of elements with odd and even numbers. Two dimensional array.

6455


How can you quickly find the number of elements stored in a a) static array b) dynamic array ? Why is it difficult to store linked list in an array?how can you find the nodes with repetetive data in a linked list?

1325


What does ios :: app do in c++?

1092


Mention the ways in which parameterized can be invoked.

969


Can a list of string be stored within a two dimensional array?

1041


What is the difference between function overloading and operator overloading?

1171


What are the classes in c++?

1156