int arr[]={11,22222,22,33,444444};

int n=arr[1].length();

int n1=arr[4].length();

//i want to find length of the {22222} number inside the array

is this correct if not how to find length of the particular elements.

length=0

number=22222

while(number>0)

{

length++;

number=number/10;

}

when the while loop exits the length variable contains the length of number(22222) i.e. 5

there is a easier way, if the numbers inside your array are != 0 (its a special case), just do the next calc.

length_ith = floor(log10(abs(arr[ith]))) + 1

len=0;

number=22222;

while(number>0)

{

number=number/10;

len++;

}

//so length of the number is len,i.e 5.