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
What does p mean in physics?
What is the need of structure in c?
what is the difference between class and unio?
How do you print only part of a string?
Difference between pass by reference and pass by value?
Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?
How is a structure member accessed?
What tq means in chat?
What is the difference between array and linked list in c?
Dont ansi function prototypes render lint obsolete?
How can I find out if there are characters available for reading?
What is clrscr ()?
Explain what is the concatenation operator?
how to introdu5ce my self in serco
what are the facialities provided by you after the selection of the student.