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

Can we change the value of #define in c?

800


What is the explanation for prototype function in c?

774


How do you list files in a directory?

837


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

854


How do you search data in a data file using random access method?

1104


Can we change the value of constant variable in c?

835


How do I convert a string to all upper or lower case?

891


Which of the following operators is incorrect and why? ( >=, <=, <>, ==)

924


What is the purpose of main() function?

959


What is the difference between procedural and functional programming?

758


What do you mean by scope of a variable in c?

790


What is || operator and how does it function in a program?

876


Which header file should you include if you are to develop a function which can accept variable number of arguments?

1084


How can I read data from data files with particular formats?

836


Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

887