#include<stdio.h>
struct node
{
int date;
int num;
char name;
};
main()
{
struct node n;
n.date = 10;
n.num = 22;
n.name ='p';
printf("%d\n %d\n %c\n",n.date,n.num,n.name);
printf("size of structure = %d\n",sizeof(struct node));
}
Op :
10
22
p
size of structure =12
0 comments: