how to find the largest element of array without using relational operater?

Answer Posted / dhakchina moorthy.p

sort the array first and then have the last element of the
array, which is always larger then the remaining.

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is it usually a bad idea to use gets()? Suggest a workaround.

917


What is hungarian notation? Is it worthwhile?

711


Are c and c++ the same?

638


How can I manipulate individual bits?

613


How many parameters should a function have?

671






Mention four important string handling functions in c languages .

637


What is enumerated data type in c?

635


What is the use of f in c?

563


Why clrscr is used in c?

593


Explain the term printf() and scanf() used in c language?

602


Why c is known as a mother language?

654


Explain how do you print an address?

667


What are the two types of functions in c?

578


Write a code to determine the total number of stops an elevator would take to serve N number of people.

737


How can you avoid including a header more than once?

570