-
What will be the output of the following C code?
#include <stdio.h>
void function(auto int n);
int main()
{
function(12);
}
void function(auto int n)
{
printf("%d\n", n);
}
-
- Compilation Error
- Depend on compiler
- Depends on the standard
- 12
- None of these
Correct Option: A
Compilation Error
main.c:2:28: error: storage class specified for parameter ‘n’
void function(auto int n);
^
main.c:7:28: error: storage class specified for parameter ‘n’
void function(auto int n)