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 >
int main()
{
register auto int i = 10;
i = 11;
printf(“%d\n”, i);
}

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

Answer: b

Join The Discussion