#include<stdio.h>
#define FUNDLEN 50
struct fund
{
char bank[FUNDLEN];
double bankfund;
char save[FUNDLEN];
double savefund;
};
double sum(double,double);
main()
{
struct fund stan={"qqq",123,"www",456};
printf("stan is total of %.2f\n",sum(stan.bankfund,stan.savefund));
}
double sum(double x,double y)
{
return(x+y);
}
#define FUNDLEN 50
struct fund
{
char bank[FUNDLEN];
double bankfund;
char save[FUNDLEN];
double savefund;
};
double sum(double,double);
main()
{
struct fund stan={"qqq",123,"www",456};
printf("stan is total of %.2f\n",sum(stan.bankfund,stan.savefund));
}
double sum(double x,double y)
{
return(x+y);
}