in Technology by
What is keyword auto for in C-programming?

1 Answer

0 votes
by

By default every local variable of the function is automatic (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 can’t be an automatic variable.

Related questions

0 votes
    What is use of keyword auto C Programming?...
asked Jan 17, 2021 in Technology by JackTerrance
+1 vote
    What are the valid places for the keyword break to appear in C-Programming?...
asked Nov 9, 2020 in Technology by JackTerrance
0 votes
    How is free keyword work in C?...
asked Jan 24, 2021 in Technology by JackTerrance
+1 vote
    What is the purpose of the keyword typedef in C Progamming?...
asked Nov 9, 2020 in Technology by JackTerrance
0 votes
    Which keyword is used to define the macros in c++? a) #macro b) #define c) macro d) define...
asked Oct 19, 2022 in Education by JackTerrance
+1 vote
    Which operator is used to receive the variable number of arguments for a function in C Programming?...
asked Nov 9, 2020 in Technology by JackTerrance
+1 vote
    What is a pointer to a function? Give the general syntax for the same in C Programming?...
asked Nov 9, 2020 in Technology by JackTerrance
+1 vote
    What is reminder for 5.0 % 2 in C Programming?...
asked Nov 9, 2020 in Technology by JackTerrance
0 votes
    What is the description for syntax errors in C Programming?...
asked Nov 8, 2020 in Technology by JackTerrance
0 votes
    For which of the following criteria can Spring boot auto configuration be done? A. Presence of a System Property B. ... of a particular class in classpath E. All the options...
asked Nov 8, 2022 in Education by JackTerrance
0 votes
    Need to show a credits screen where I want to acknowledge the many contributors to my application. Want it ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 27, 2022 in Education by JackTerrance
0 votes
    I've got a local .mdf SQL database file that I am using for an integration testing project. Everything ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 16, 2022 in Education by JackTerrance
0 votes
    Am trying to perform an update and nothing seems to work. It has something to do with my callback ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 11, 2022 in Education by JackTerrance
0 votes
    When you setup an Auto Scaling groups in AWS EC2 Min and Max bounds seem to make sense: The minimum number of ... is larger than Min? Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    Which keyword is used for Inheritance in TypeScript? (1)extends (2)defines (3)follows (4)implements...
asked Aug 26, 2021 in Technology by JackTerrance
...