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 are the advantages of Macro over function?
Explain high-order bytes.
What is difference between structure and union in c?
What are integer variable, floating-point variable and character variable?
What are extern variables in c?
What is openmp in c?
Differentiate between #include<...> and #include '...'
Explain is it better to bitshift a value than to multiply by 2?
why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???
How can you restore a redirected standard stream?
Explain Function Pointer?
Define VARIABLE?
How reliable are floating-point comparisons?
Which is an example of a structural homology?
What are types of functions?