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 can the sizeof operator be used to tell the size of an array passed to a function?
How is a macro different from a function?
How pointers are declared?
A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile
What is 2c dna?
What is typedef example?
how many key words availabel in c a) 28 b) 31 c) 32
What is the difference between typedef and #define?
Write a program on swapping (100, 50)
What is queue in c?
What is extern storage class in c?
What are the difference between a free-standing and a hosted environment?
How can I read a binary data file properly?
main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above
Here is a neat trick for checking whether two strings are equal