0
why it is not working
5 Answers
+ 7
1. sizeof doesn't return the length of array. It returns the total number of bytes of the parameter. Integers are of 4 bytes, and your array contains 11 integers. So sizeof (year) is 44. To get 11, you need to divide it by the size of data type
2. remove the line which prints xi before taking input.
https://code.sololearn.com/cBEDEh4NACJ0/?ref=app
+ 1
@jonas it has an array that have year when cricket world cup was held. now there is a loop which checks whether the integer in the oats meter equal that of the array and if it equal then stop it.
+ 1
Thank you, but I wanted to know what it is for on general.
0
What should your code do, just for better understanding?
0
yeah its ok.