Question
#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
Posted under C Programming
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. What is the output of this C code? #include <stdio.h> int main() { auto i = 10; const auto int *p = &i; printf("%d\n", i); }
Similar Questions
Discover Related MCQs
Q. Automatic variables are variables that are
View solution
Q. Automatic variables
View solution
Q. Automatic variables are allocated memory in
View solution
Q. Automatic variables are initialised to
View solution
Q. Which of the following storage class supports char data type?
View solution
Q. The variable declaration with no storage class specified is by default:
View solution
Q. Property which allows to produce different executable for different platforms in C is called?
View solution
Q. C preprocessors can have compiler specific features
View solution
Q. C preprocessor is conceptually the first step during compilation
View solution
Q. Preprocessor feature that supply line numbers and filenames to compiler is called?
View solution
Q. A preprocessor is a program
View solution
Q. Which of the following are C preprocessors?
View solution
Q. #pragma exit is primarily used for?
View solution
Q. The C-preprocessors are specified with _________symbol.
View solution
Q. The preprocessor provides the ability for _______________
View solution
Q. What is the sequence for preprocessor to look for the file within <> ?
View solution
Q. Can function definition be present in header files?
View solution
Q. If the file name is enclosed in double quotation marks
View solution
Q. If the file name is enclosed in angle brackets
View solution
Q. Which of the following names for files not accepted?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond C Programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!