1,265 views
1 1 vote

pls explain why option d is wrong ?

Please log in or register to answer this question.

Position:
Show:

Related questions

7 7 votes
2 2 answers
374
374 views
GO Classes asked Jun 29
374 views
What is the output of the following code?#include <stdio.h struct Item { int code; int price; }; void update(struct Item *p) { p->price = p->price + 20; (*p).code = (*p)....
6 6 votes
2 2 answers
340
340 views
GO Classes asked Jun 29
340 views
What is the output of the following code?#include <stdio.h struct Box { int width; int height; }; int main() { struct Box b = {4, 6}; struct Box *p = &b; p->width = p->wi...
6 6 votes
2 2 answers
361
361 views
GO Classes asked Jun 27
361 views
What will happen in the following code?#include <stdio.h #include <stdlib.h int main() { int *p = (int *)malloc(sizeof(int)); *p = 10; free(p); printf("%d", *p); return 0...
8 8 votes
2 2 answers
300
300 views
GO Classes asked Jun 27
300 views
What is the output of the following code?#include <stdio.h int main() { int x = 25; void *p = &x; printf("%d", *(int *)p); return 0; }$\texttt{25}$ Address of $\texttt{x}...