What will be the output of the following C code?
#include <stdio.h>
int main()
{
auto i = 10;
const auto int *p = &i;
printf("%d\n", i);
}
#include <stdio.h>
int main()
{
auto i = 10;
const auto int *p = &i;
printf("%d\n", i);
}A. 10
B. Compile time error
C. Depends on the standard
D. Depends on the compiler
Answer: Option A

Join The Discussion