mardi 4 août 2015

Array size calculation without using inbuilt functions

How to find the size of an integer array without using any inbuilt function?

int fun(int a[25],int ele)
{

    int flag=0,i=0;
    while(a[i]!=NULL)
    {
        flag++;
        i++;
    }
    return flag;
 }



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire