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
Can we change the value of #define in c?
What is the explanation for prototype function in c?
How do you list files in a directory?
a linearly ordered set of data elements that have the same structure and whose order is preserved in storage by using sequential allocation a) circular b) ordinary c) array d) linear list
How do you search data in a data file using random access method?
Can we change the value of constant variable in c?
How do I convert a string to all upper or lower case?
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
What is the purpose of main() function?
What is the difference between procedural and functional programming?
What do you mean by scope of a variable in c?
What is || operator and how does it function in a program?
Which header file should you include if you are to develop a function which can accept variable number of arguments?
How can I read data from data files with particular formats?
Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?