+ 2

int arr[25]; printf("%d",sizeof(array));

What will be the output?

19th Aug 2019, 11:45 AM
Khushi Puri
Khushi Puri - avatar
3 Respostas
+ 5
sizeof returns the size of a type. For example sizeof(int) will return the size of integer which is 4(size is compiler dependent). As you created any array of 25 integers, which is 25(size of array) * 4(size of int) = 100 So sizeof will return 100
19th Aug 2019, 12:24 PM
blACk sh4d0w
blACk sh4d0w - avatar
+ 4
Oh sorry for the mistake
19th Aug 2019, 12:24 PM
Khushi Puri
Khushi Puri - avatar
+ 2
Please tag 'C' instead of 'Java' (Edit) Tag is updated. Thank you for your understanding 👍
19th Aug 2019, 12:24 PM
Ipang