Home » C Programming » Structures, Unions, Enums

If the following structure is written to a file using fwrite(), can fread() read it back successfully? struct emp { char *n; int age; }; struct emp e={"CuriousTab", 15}; FILE *fp; fwrite(&e, sizeof(e), 1, fp);

← Previous Next →

Discussion & Comments

No comments yet. Be the first to comment!