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
Why pointers are used?
What do the functions atoi(), itoa() and gcvt() do?
How can I ensure that integer arithmetic doesnt overflow?
Write a program to swap two numbers without using a temporary variable?
why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???
Is array a primitive data type in c?
What is context in c?
how we can make 3d venturing graphics on outer interface
Explain what is gets() function?
Explain that why C is procedural?
Write a program to know whether the input number is an armstrong number.
Why is this loop always executing once?
Tell me is null always defined as 0(zero)?
Write a C program in Fibonacci series.
What is the difference between procedural and declarative language?