Q:

C PROGRAM TO FIND ARRAY SIZE:

0

C PROGRAM TO FIND ARRAY SIZE:

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

#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

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now