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
Explain what will the preprocessor do for a program?
Not all reserved words are written in lowercase. TRUE or FALSE?
How do I get an accurate error status return from system on ms-dos?
Can you add pointers together? Why would you?
What is the benefit of using an enum rather than a #define constant?
Explain the ternary tree?
Implement bit Array 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
Difference between pass by reference and pass by value?
What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?
Is it better to bitshift a value than to multiply by 2?
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
What is linear search?
How can I access an I o board directly?
What is external variable in c?