Untitled
unknown
plain_text
a year ago
612 B
3
Indexable
#include<stdio.h> #include<conio.h> struct college_detail{ int college_id; char college_name; };struct student_detail{ int id; char name[20]; float percentage; struct college_detail college_data; }stu_data; void main(){ struct student_detail stu_data={ 1,"SHYAM",90.5,411,"TCl" }; printf("ID is %d\n",stu_data.id); printf("Name is %s\n",stu_data.name); printf("percentage is %f\n",stu_data.percentage); printf("college id is %d\n",stu_data.college_data.college_id); printf("college name is %s \n",stu_data.college_data.college_name); getch(); };
Editor is loading...
Leave a Comment