Computer Science, asked by priya6959, 9 months ago

write a c program to find number of elements in the given array​

Answers

Answered by minhaj66340
14

Answer:

The program output is also shown below.

* C Program to Find the Number of Elementsin an Array.

#include <stdlib.h>

#include <unistd.h>

int array[] = {15, 50, 34, 20, 10, 79, 100};

int n;

n = sizeof(array);

printf("Size of the given array is %d\n", n/sizeof(int));

return 0;

Explanation:

pls mark me as brainliest ❣❣

Answered by niharika444458
3

  • * C Program to Find the Number of Elements in an Array.

  • #include <stdlib.h>

  • #include <unistd.h>

  • int array[] = {15, 50, 34, 20, 10, 79, 100};

  • int n;

  • n = sizeof(array);

  • printf("Size of the given array is %d\n", n/sizeof(int));

  • return 0;

Similar questions