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 does nil mean in c?
What is scope rule in c?
we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above
What are the advantages of union?
Which is the memory area not included in C program? give the reason
Write a code to generate divisors of an integer?
How will you find a duplicate number in a array without negating the nos ?
Can we increase size of array in c?
What are the 5 elements of structure?
What is sizeof array?
What is a program?
What is getch?
Explain how can I write functions that take a variable number of arguments?
What is the purpose of sprintf?
What is the difference between void main and main in c?