+ 3

int a = c.length()-1; int b = c[0]; for(int i=0;i<=a;i++)

I want to know what does "c.length()" means

2nd Apr 2017, 7:35 AM
Dhananjay Panage
Dhananjay Panage - avatar
3 Respostas
+ 29
It counts the length of string stored in variable c.. i guess.. :/
2nd Apr 2017, 7:47 AM
Frost
Frost - avatar
+ 7
I can guess that this is an algorithm to find the highest value in an array of integer. so here 'c' is the array of integer and 'a' is assigned to the (number of integers in the array) - 1 That means c.length() function counts the number of integers in that array. And entire project finds the maximum integer value from the array 'c'.
2nd Apr 2017, 8:58 AM
Cyrus Ornob Corraya
Cyrus Ornob Corraya - avatar
0
the measure of "C"
4th Apr 2017, 4:33 AM
Ian the Coder😎
Ian the Coder😎 - avatar