program to find length of array in C

 Program to find length of array in C

//WAP to find length of array in C

#include<stdio.h>

int main()

{

int lst[]={1,2,3,4,8,2,63,365,376};

printf("%d",sizeof(lst)/sizeof(lst[0]));

return 0;

}

\


No comments:

Powered by Blogger.