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
overloadstream insertion opertator to display the data of object on the console

real time application of b tree

Default assignment operator mange assigning one object to another object of the same class. It is member to member copy as shallow copy.

write a program to calculate the cuboid

Selection sort - C program: Write a program to define a selection sort. void main()  {   clrscr();   int a[100],ch,n;   cout   cin>>n;   for (int i=0;i

flowchart of c programing to check the given number is prime or not


Define the Recursion Function in C? In C, it is potential for the function to call themselves a function is describing 'recursive' if a statement within the body of a function

A: The simplest instance of a smart pointer is auto_ptr that is included in the standard C++ library. Auto Pointer only takes care of Memory leak & does nothing regarding dangling

what is the purpose of pointer ? what is the syntax? how it works?