(vii) Assume that an integer variable needs 4 bytes space, a float variable needs 4 bytes space, and a character variabl
Posted: Wed Apr 27, 2022 3:35 pm
(vii) Assume that an integer variable needs 4 bytes space, a float variable needs 4 bytes space, and a character variable needs 1 byte space. Then we need a total of bytes space to store the structure in the RAM memory. struct mydevice { int ports; int port_types [8]; float cost; int cpu_cores[8]; char chips [10]; struct make{ int version; int year; char vendor [10]; }; float current_rating, power_rating; }; (viii) Using the structure defined in Q.1(x) above, declare an array of structures to store information for 200 devices. What is the total storage space for this array? Array of Structures: Total size of the array of structures:
(ix) Consider a declaration char P[101; Then the maximum number of characters (including a null character at the end) that can be stored in this array 15
(ix) Consider a declaration char P[101; Then the maximum number of characters (including a null character at the end) that can be stored in this array 15