How many ways are there to initialize an int with a constant, C/C++ Programming

There are two ways for initializes in C++ as shown in the example that follows. The first way uses the traditional C notation. The second way uses constructor notation.

int foo = 123;

int bar (123);      

 

 

Posted Date: 4/9/2013 12:45:57 AM | Location : United States







Related Discussions:- How many ways are there to initialize an int with a constant, Assignment Help, Ask Question on How many ways are there to initialize an int with a constant, Get Answer, Expert's Help, How many ways are there to initialize an int with a constant Discussions

Write discussion on How many ways are there to initialize an int with a constant
Your posts are moderated
Related Questions
Sir i want to know all the basic knowledge of turbo c.


The Main program is slightly more complicated and you need to think about the I/O process. First of all, for most applications you do not call the low level routines GetChar and P


write a program in c/C++ using nested if statement for calculating the average marks and grades of 5 subjects

A: In C, encapsulation was completed by making things static in a compilation unit or module. It prevented another module from accessing the static stuff. (Incidentally, now static

write a C++ program that performs the following tasks 1. prompts the user to enter two numbers 2. displays the divisors of each number and store the divisors of number 1 in A and t



.write a program that counts the number of occurrences of the string in the n-th padovan string p(n)   program in java // aakash , suraj , prem sasi kumar kamaraj college