Why here is the size of arr 100? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

Why here is the size of arr 100?

#include <stdio.h> int main() { int arr[25]; printf("%i", sizeof (arr)); return 0; }

20th Jan 2019, 6:33 PM
Zhenis Otarbay
Zhenis Otarbay - avatar
1 Answer
+ 1
printf("%d",(int)sizeof(arr)); try this.
20th Jan 2019, 6:38 PM
Ümit YAVUZ
Ümit YAVUZ - avatar