Login
Remember
Register
Ask a Question
How many ways are there to initialize an int with a Constant?
0
votes
asked
Jun 9, 2020
in
C Plus Plus
by
Robindeniel
How many ways are there to initialize an int with a Constant?
#c-initialize-constant
#c-initialize-intiger
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jun 10, 2020
by
sharadyadav1986
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
...