0 votes
in C Plus Plus by
How many ways are there to initialize an int with a Constant?

1 Answer

0 votes
by
There are two ways:

The first format uses traditional C notation.

int result = 10;

The second format uses the constructor notation.

int result (10);

Constants
...