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 void main return?
What is a char c?
how we can make 3d venturing graphics on outer interface
What is the difference between the expression “++a” and “a++”?
By using C language input a date into it and if it is right?
printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions
The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this
Should I learn c before c++?
Is c a great language, or what?
What is an auto variable in c?
what will be maximum number of comparisons when number of elements are given?
Do you know pointer in c?
Without Computer networks, Computers will be half the use. Comment.
main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none
What is the significance of c program algorithms?