Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

How to find array functions program

–2 votes
asked Dec 9, 2019 by Akhil (100 points)

1 Answer

0 votes
answered Dec 18, 2019 by Prakash Rockez (260 points)

program:

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

int main()
{
 int array[] = {10,20,30,40,50,60,70,80,90};
 int n;
 n = sizeof(array);
 printf("Size of the given array is %d\n", n/sizeof(int));
 return 0;
}

output:

Size of the given array is 9

Process returned 0 (0x0)   execution time : 0.016 s
Press any key to continue.

Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...