I need to store student n records in a program

I need to store student n records in a program. Each record needs 50 bytes to store. If I store the records in a simple array of student-type structures, I have to take the array of 20% extra capacity. Alternatively, I can take an array of pointers and allocate memory of each record dynamically only when needed. If a pointer takes 8 bytes and we are storing 100 records, how many bytes do I save by using an array of pointers instead of an array of structures? Just write the number, do not type “bytes”. For example, instead of “90 bytes”, just type “90”.

-25-


Buy plagiarism free, original and professional custom paper online now at a cheaper price. Submit your order proudly with us



Essay Hope