#include <stdio.h> int arr[8]= { 1, 2, 3, 4, 5, 6, 7, 8 }; int main() { int length; length = sizeof(arr)/sizeof(int); printf("The length of Array is %d", length); return 0; }
Output:
The length of Array is 8
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Output:
The length of Array is 8