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 the difference between strcpy() and memcpy() function in c programming?
How is pointer initialized in c?
What are the types of data structures in c?
What does. int *x[](); means ?
Explain what is the use of a semicolon (;) at the end of every program statement?
How does selection sort work in c?
Is c weakly typed?
Tell me the use of bit field in c language?
State the difference between realloc and free.
What is the heap?
define string ?
What are c header files?
Explain what is #line used for?
How can I recover the file name given an open stream or file descriptor?
Why isn't it being handled properly?