#include struct tstruct { float f; int i; char c; }; struct tstruct tfunction(void) { struct tstruct a = {2.f,1,'a'}; return a; } int main(void) { struct tstruct x = tfunction(); printf("%f\n%d\n%c",x.f,x.i,x.c); return 0; }