R
Q. What will be the output of this code?
void main() { struct xx { int x=3; char name[] = "hello"; }; struct xx *s = malloc(sizeof(struct xx)); printf("%d", s->x); printf("%s", s->name); }
Initialization should not be done for structure members inside the structure declaration.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. The correct way to round off a floating number x to an integer value is
Q. What is the present C Language Standard?
Q. What happens after a return?
Q. Which of the following correctly shows the hierarchy of arithmetic operations in C?
Q. What is the default return value of a C function if not specified explicitly.?
Discusssion
Login to discuss.