C প্রোগ্রামিং - 12 অধ্যায়–Structure (কিছু : example)
//struture
#include<stdio.h>
struct sha
{
int a,b,c;
float d,e,f;
char g,h,i;
}x,y,z;
int main()
{
scanf("%d%d%d",&x.a,&x.b,&x.c);
printf("%d%d%d",x.a,x.b,x.c);
}
#include<stdio.h>
struct sh
{
int a;
float b;
char c;
};
int main()
{
struct sh v;
v.a=5;
v.b=5.5;
v.c=4;
printf("%d\n%f\n%c\n",v.a,v.b,v.c);
}
No comments:
Post a Comment