P187. Program to initialize structure variable.
#include<stdio.h>
struct
one
{
int i;
char ch;
float f;
};
void
main()
{
// struct one v;
// v.i=10;
// v.ch='A';
// v.f=23.5000;
//struct
one v={.f=52.5};
struct
one v={15,'b',56.67};
printf("%d %c
%f\n",v.i,v.ch,v.f);
}
Comments
Post a Comment