Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
How many ways are there to initialize an int with a Constant?
Home
C Plus Plus
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
Your comment on this answer:
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Related questions
0
votes
Q: How many ways are there to define a filter in Vue.js?
asked
Apr 13, 2022
in
VueJS
by
john ganales
vuejs-filter
vue-js-tutorial
vue-js-vs-react
vue-js-interview-questions
vue-js-vs-angular
vue-js-installation
vue-js-declarative-
vue-js-renderingconditions-&-loops
vue-js-instances
vue-js-template
vue-js-components
vue-js-routing
vue-js-mixins
vue-js-computed-properties
vue-js-watch-property
vue-js-functions
vue-js-directives
vue-js-event-handling
vue-js-data-binding
0
votes
Q: What is a Constant? Explain with an example.
asked
Jun 9, 2020
in
C Plus Plus
by
Robindeniel
#c-constant
#c-constant-example
0
votes
Q: How many ways are there for the user to create custom territories?
asked
Jul 25, 2021
in
Tableau The Sequel
by
SakshiSharma
tableu-custom-territories
0
votes
Q: How many ways are there to determine the charges for PPC?
asked
Oct 26, 2020
in
Data Handling
by
AdilsonLima
#digialmarketing
DataHandling-questions-answers
0
votes
Q: What is ViewEncapsulation and how many ways are there do to do it in Angular?
asked
Jan 6, 2020
in
Angular
by
sharadyadav1986
#viewencapsulation
0
votes
Q: How to initialize an array in Kotlin with values?
asked
Oct 6, 2021
in
Kotlin
by
Robin
arrary-intialize
+2
votes
Q: How many types of the array are there in the C++ programming language?
asked
Jan 21, 2021
in
C Plus Plus
by
SakshiSharma
#c-array
array
0
votes
Q: What are the ways to define a constant in PHP?
asked
Jun 5, 2020
in
PHP
by
Robindeniel
#php-define-constant
0
votes
Q: Is that possible to store 32768 in an int data type variable?
asked
Mar 17, 2020
in
C Plus Plus
by
SakshiSharma
#c-lanuage-data-types
0
votes
Q: If there are eight payloads with two parameters each how many requests will a battering ram make?
asked
Apr 16, 2022
in
Burp Suite
by
sharadyadav1986
burp-payloads
http-requests
burp-repeater
burp-suite-tasks
burp-suite-projects
burp-suite-user-interface
burp-proxy
burp-target-scope
burp-suite-websocket
burp-extensions
burp-intruder
burp-proxy-spoofing
burp-collaborator
burp-scanner
...