Question
#include <stdio.h>
int main()
{
register int i = 10;
int *p = &i;
*p = 11;
printf("%d %d\n", i, *p);
}
a.
Depends on whether i is actually stored in machine register
b.
10 10
c.
11 11
d.
Compile time error
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() { register int i = 10; int *p = &i; *p = 11; printf("%d %d\n",...
Similar Questions
Discover Related MCQs
Q. register keyword mandates compiler to place it in machine register.
View solution
Q. Register storage class can be specified to global variables
View solution
Q. Which among the following is wrong for “register int a;” ?
View solution
Q. When compiler accepts the request to use the variable as a register?
View solution
Q. Which data type can be stored in register?
View solution
Q. Which of the following operation is not possible in a register variable?
View solution
Q. Which among the following is the correct syntax to declare a static variable register?
View solution
Q. Register variables reside in
View solution
Q. The scope of an automatic variable is:
View solution
Q. Automatic variables are allocated space in the form of a:
View solution
Q. Which of the following is a storage specifier?
View solution
Q. Default storage class if not any is specified for a local variable, is auto
View solution
Q. Automatic variables are stored in
View solution
Q. What linkage does automatic variables have?
View solution
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
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!