Determine Output: void main(){ struct xx { int x=3; char name[] = "hello"; }; struct xx *s = malloc(sizeof(struct xx)); printf("%d", s->x)…
Determine Output:
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);
}From the BB Assistant Programmer February 2023 – Written (BIBM) exam, question 15 of 37.