Is the below things valid & where it will be stored in
memory layout ?
static const volatile int i;
register struct { } ;
static register;
Answer Posted / guest
1.static const volatile int i;
is valid cos it is possible to declare a variable with
multiple qualifiers.
2.register struct a{ } ; is invalid but it will be valid
when u doesnt have body of the structure.
ie., struct a;
3.static register int i; is also invalid cos, here
different storage classes are assigned to a single
variable.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What is difference between scanf and gets?
What are dangling pointers in c?
What are the two types of functions in c?
What is wrong with this program statement? void = 10;
Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.
Explain what is the purpose of "extern" keyword in a function declaration?
What is openmp in c?
What is wrong with this code?
What does typeof return in c?
What are the 5 data types?
Is return a keyword in c?
What is the use of a conditional inclusion statement in C?
What is difference between && and & in c?
Is it possible to pass an entire structure to functions?
a program that can input number of records and can view it again the record