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
What is vector pair in c++?
What is an html tag?
What are friend classes?
Is empty stack c++?
Is java easier than c++?
How many different levels of pointers are there?
Why do we learn c++?
write a porgram in c++ that reads an integer and print the biggest digit in the number
By using c++ with an example describe linked list?
Is atoi safe?
Should the this pointer can be used in the constructor?
Explain virtual destructor?
write a programme to get a character and thier ASCII value
What is a driver program?
Explain the differences between private, public and protected and give examples.