Is the below things valid & where it will be stored in
memory layout ?
static const volatile int i;
register struct { } ;
static register;

Answer Posted / banavathvishnu

register struct test
{
int i;
char c;
float f;
};

int main()
{
struct test t;
t.c = 'v';
printf("%c",t.c);


getch();
}
The above code is valid
The below code is invalid

register struct test
{
};

int main()
{
struct test t;
t.c = 'v';
printf("%c",t.c);


getch();
}

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what will the preprocessor do for a program?

839


Not all reserved words are written in lowercase. TRUE or FALSE?

1020


How do I get an accurate error status return from system on ms-dos?

909


Can you add pointers together? Why would you?

915


What is the benefit of using an enum rather than a #define constant?

971


Explain the ternary tree?

819


Implement bit Array in C.

924


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

956


Difference between pass by reference and pass by value?

899


What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?

1044


Is it better to bitshift a value than to multiply by 2?

893


The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none

1019


What is linear search?

942


How can I access an I o board directly?

869


What is external variable in c?

843