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
What is the keyword auto for in C++?
Home
C Plus Plus
What is the keyword auto for in C++?
0
votes
asked
Jun 11, 2020
in
C Plus Plus
by
Robindeniel
What is the keyword auto for?
#c
-keyword-auto
#keyword-c
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jun 11, 2020
by
sharadyadav1986
By default, every local variable of the function is automatic i.e. auto. In the below function both the variables ‘i’ and ‘j’ are automatic variables.
void f()
{
int i;
auto int j;
}
NOTE: A global variable is not an automatic variable.
Related questions
+2
votes
Q: Explain the purpose of the keyword volatile.
asked
Jun 19, 2019
in
C Plus Plus
by
anonymous
#c
+1
vote
Q: For inserting a new line in C++ program, which one of the following statements can be used?
asked
Jan 20, 2021
in
C Plus Plus
by
SakshiSharma
#c
-new-line
new-line-character
+2
votes
Q: Which type of memory is used by an Array in C++ programming language?
asked
Jan 21, 2021
in
C Plus Plus
by
SakshiSharma
#c
-array
#array
0
votes
Q: List the types of inheritance supported in C++.
asked
Jun 18, 2020
in
C Plus Plus
by
Robindeniel
#c
-inheritance
0
votes
Q: What is Exception Handling? Does C++ support Exception Handling?
asked
Jun 15, 2020
in
C Plus Plus
by
Robindeniel
#c
-exception-handling
#exception-handling
#support-exeption-handling
0
votes
Q: What is a template in C++
asked
Jun 15, 2020
in
C Plus Plus
by
Robindeniel
#c
-template
#template
0
votes
Q: What is Polymorphism in C++
asked
Jun 15, 2020
in
C Plus Plus
by
Robindeniel
#c
-polymorphism
#polymorphism-c
0
votes
Q: Does C++ support Multilevel and Multiple Inheritances?
asked
Jun 15, 2020
in
C Plus Plus
by
Robindeniel
#c
-multilevel-inheritance
-multiple-inheritance
0
votes
Q: What is Inheritance in C++
asked
Jun 15, 2020
in
C Plus Plus
by
Robindeniel
#inheritance-c
#c
-inheritance
0
votes
Q: What is the difference between Method Overloading and Method Overriding in C++?
asked
Jun 15, 2020
in
C Plus Plus
by
Robindeniel
#c
-method-overloading
#method-overloading
#method-overriding
...