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 23, 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
    Selenium doesn’t support the following programming language: 1. Python 2. C# 3. C 4. Java...
asked Jul 11, 2021 in Technology by JackTerrance
0 votes
    Which type of pointer is the most convenient way of storing the raw address in C programming?...
asked Jan 23, 2021 in Technology by JackTerrance
0 votes
    What are command line arguments in C Programming?...
asked Jan 18, 2021 in Technology by JackTerrance
0 votes
    How a negative integer is stored in C Programming?...
asked Jan 17, 2021 in Technology by JackTerrance
0 votes
    What is recursion in C Programming?...
asked Nov 9, 2020 in Technology by JackTerrance
0 votes
    What is typecasting in C Programming?...
asked Nov 9, 2020 in Technology by JackTerrance
...