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
Explain how many levels deep can include files be nested?
Explain 'bus error'?
What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file
Which is better malloc or calloc?
What is the size of a union variable?
how to find binary of number?
Tell us something about keyword 'auto'.
What does the message "automatic aggregate intialization is an ansi feature" mean?
Why header file is used in c?
What is difference between static and global variable in c?
Can we change the value of constant variable in c?
How important is structure in life?
What is meant by 'bit masking'?
struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer
Explain the properties of union. What is the size of a union variable