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
A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrome

write a c++ program for the sum of 10 numbers and print out the average


how to create a flowchart? can you help me in my assignment about flowcharting ....

Returning References from Functions Just as in passing the parameters by reference, returning a reference also doesn't return back a copy of the variable , instead an alias is

how can I find the GCD of 2 given numbers using Euclidean Algorithm ?

Program is to replace every occurrence of in a string: Program is to replace every occurrence of c1 in string with c2 and have function return the no. of replacement int re

Described the ISA and HASA class relationships. How would you apply each in a class design? A: A specialized class "is" specialization of another class and, thus, has the ISA re

I am working on a program that allows a player to play a game against the computer. In this game the player can only chose to draw 1, 2, or 3 toothpicks. How do I make restrictions

Described the order that objects in an array is destructed?