Form biggest no


I am not able to understand what error is being displayed.Please help.

@srshubhi398 return type of compare function is always BOOL, not INT. In the compare function, you dont pass the entire array, but just 2 elements at a time are passed

so I just need to change the data type to bool?

this also needs to change

@srshubhi398 i’ll make changes in your code wait

@srshubhi398 see this https://ide.codingblocks.com/s/293495

1 Like

Thankyou so much.But I wanted to ask was my logic correct?As I had also tried to join the arrays to one another and then sort and find the answer?

Hi @srshubhi398 yes the logic was similar, but as you can see its much easier dealing with strings and your program had some syntax mistakes as well

1 Like

Yes I noticed that.Thanks a lot :slightly_smiling_face: :slightly_smiling_face:

1 Like

@srshubhi398 don’t forget to mark your doubt as resolved! :slight_smile:

1 Like