Home » C Programming » Variables » Question
  1. 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);
    }
    1. Compilation Error
    2. Depend on compiler
    3. Depends on the standard
    4. 12
    5. 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)



Your comments will be displayed only after manual approval.