Active Users --   Active users on this page
Active User Avatars Active User Avatars Active User Avatars

Question

What will be the output of the program in 16-bit platform (under DOS)
#include<stdio.h>

int main()
{
struct node
{
int data;
struct node *link;
};
struct node *p, *q;
p = (struct node *) malloc(sizeof(struct node));
q = (struct node *) malloc(sizeof(struct node));
printf("%d, %d\n", sizeof(p), sizeof(q));
return 0;
}

  • ✅ 2, 2
  • 5, 5
  • 4, 4



Answer is "2, 2"

2 Answer and explanations

You don't need to login to post your comment

260
Allison Allison

Cool if had answer

827
Kimberly Kimberly

Thank you so much for the answer

Note: Random profile images were taken from 'thispersondoesnotexist.com'

Post your answer

You don't need to login to post answer

███████╗░█████╗░██╗░░██╗░█████╗░██╗░░░██╗░█████╗░ ██╔════╝██╔══██╗╚██╗██╔╝██╔══██╗╚██╗░██╔╝██╔══██╗ █████╗░░██║░░██║░╚███╔╝░██║░░██║░╚████╔╝░██║░░██║ ██╔══╝░░██║░░██║░██╔██╗░██║░░██║░░╚██╔╝░░██║░░██║ ██║░░░░░╚█████╔╝██╔╝╚██╗╚█████╔╝░░░██║░░░╚█████╔╝ ╚═╝░░░░░░╚════╝░╚═╝░░╚═╝░╚════╝░░░░╚═╝░░░░╚════╝░


Ask Question


Note: Options are optional, you can leave them blank