Where would i use sizeof() in my program? Would it be in the main body or in my function store_name? And would the code look like this: n = sizeof(child); or this int n = sizeof(child)/sizeof(info);
I need to use it because in the rest of the program i find average of the three grades then find a letter grade for each student. When using only two students, the output prints for the two students but the rest of the output is filled with garbage values, which i don't want.