+ 2
int arr[25]; printf("%d",sizeof(array));
What will be the output?
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
+ 4
Oh sorry for the mistake
+ 2
Please tag 'C' instead of 'Java'
(Edit)
Tag is updated.
Thank you for your understanding 👍