So int array[5] means an array of 5 integers of 4 bytes each. So sizeof(array) = 4 x 5 = 20 bytes. Similarly the size of a character is 1 byte.
確定! 回上一頁