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 are identifiers c?
how could explain about job profile
How do I use void main?
What is c language in simple words?
What is quick sort in c?
Is null a keyword in c?
a program that can input number of records and can view it again the record
How to write a code for reverse of string without using string functions?
What are keywords in c with examples?
What does %p mean c?
how do you execute a c program in unix.
Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?
What is the difference between union and anonymous union?
What is difference between function overloading and operator overloading?
a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.