value : 10Code:#include <stdio.h>
#include <stdlib.h>
struct student
{
int roll_no;
};
int main()
{
struct student *st = (struct student*) malloc(4 * sizeof(struct student));
st->roll_no = 10;
printf(" value : %d \n", (st )-> roll_no);
printf(" address : %p \n", (st )-> roll_no);
return 0;
}
address : 0000000A
What would be addresses of the memory after malloc() ?