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


Please Help Members By Posting Answers For Below Questions

Explain how many levels deep can include files be nested?

835


Explain 'bus error'?

778


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

882


Which is better malloc or calloc?

859


What is the size of a union variable?

794


how to find binary of number?

3914


Tell us something about keyword 'auto'.

841


What does the message "automatic aggregate intialization is an ansi feature" mean?

929


Why header file is used in c?

782


What is difference between static and global variable in c?

766


Can we change the value of constant variable in c?

814


How important is structure in life?

803


What is meant by 'bit masking'?

1122


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

1033


Explain the properties of union. What is the size of a union variable

931