SyntaxFix
Write A Post
Hire A Developer
Questions
int a[20]; int length; length = sizeof(a) / sizeof(int);
and you can use another way to make your code not be hard-coded to int
int
Say if you have an array array
array
you just need to:
int len = sizeof(array) / sizeof(array[0]);