Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

What will be the output of the following C code?
#include < stdio.h >
void foo(auto int i);
int main()
{
foo(10);
}
void foo(auto int i)
{
printf(“%d\n”, i );
}

What will be the output of the following C code?
#include < stdio.h >
void foo(auto int i);
int main()
{
foo(10);
}
void foo(auto int i)
{
printf(“%d\n”, i );
}
a) 10
b) Compile time error
c) Depends on the standard
d) 11

Answer: b

Join The Discussion