CoolInterview.com - World's Largest Collection of Interview Questions & Answers, FAQs, queries, sample papers, exam papers, dumps, what, why, how, where, when questions
Interview Success Kit - Get Success in Job Interviews Interview Success Kit - 30,000 Interview Que. & Ans.
Covers 30,000+ Interview Questions asked in actual MNC Interviews - all with model answers.
Get Your Dream Job Now - www.vyoms.com
Sponsored Links
Interview Questions
Our Services

INTERVIEW QUESTIONS C ARRAYS IN C DETAILS
Question :
How can you sort the elements of the array in descending order?
Category Arrays in C Interview Questions
Rating (3.4) By 19 users
Added on 10/24/2009
Views 2568
Rate it!
Answers:

By calling Sort() and then Reverse() methods.



By calling Sort() and then Reverse() methods



Posted by: srihariraju

Contact srihariraju Contact srihariraju

#include<stdio.h>
main()
{
int a[10],sum=0;
int i,j,temp;
printf("enter the arraya");
for(i=0;i<10;i++)
{
scanf("%d",&a[i]);
//sum=sum+a[i];
}
for(i=10;i>=0;i--)
{
for(j=0;j<10;j++)
{
if(a[i]==a[j])
printf("%d ",a[j]);
}
}
}



Posted by: Byka.swapna

Contact Byka.swapna Contact Byka.swapna

If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-

  • There should not be any Spelling Mistakes.
  • There should not be any Gramatical Errors.
  • Answers must not contain any bad words.
  • Answers should not be the repeat of same answer, already approved.
  • Answer should be complete in itself.
  • Name :*
    Email Id :*
    Answer :*
    Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
    Process Verification Enter the above shown code: *
    Inform me about updated answers to this question

    Related Questions
    View Answer
    Array is an lvalue or not?
    View Answer
    Can the size of an array be declared at runtime?
    View Answer
    Can the sizeof operator be used to tell the size of an array passed to a function?
    View Answer
    Is it better to use a pointer to navigate an array of values,or is it better to use a subscripted array name?
    View Answer
    When does the compiler not implicitly generate the address of the first element of an array?
    View Answer

    Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.

    View ALL Arrays in C Interview Questions & Answers

    User Options
    Latest 20 Questions
    What is secondary overhead distribution?
    What points are to be noted while preparing primary overhead distribution?
    What is primary overhead distribution summary?
    What is primary overhead distribution?
    What is the difference between Allocation and Apportionment?
    What is Apportionment?
    What is Allocation?
    Give examples of manufacturing overheads?
    How to set site email default from address
    What is the difference between administrative and manufacturing overhead?
    What do you understand by manufacturing overhead?
    Give the various examples of administrative overhead.
    What do you understand by administrative overhead?
    Name the two types of business overheads.
    What do you mean by overhead expenses?
    How to hide a newly added page?
    Explain Taylor's Differential Piece Rate System.
    What is Rowan Premium Bonus Plan?
    What is Halsey Premium Bonus Plan?
    Explain the time rate system of labor remuneration. How can it be calculated?



    Fresher Jobs | Experienced Jobs | Government Jobs | Walkin Jobs | Company Profiles | Interview Questions | Placement Papers | Companies In India | Consultants In India | Colleges In India | Exams In India | Latest Results | Notifications In India | Call Centers In India | Training Institutes In India | Job Communities In India | Courses In India | Jobs by Keyskills | Jobs by Functional Areas

    Testing Articles | Testing Books | Testing Certifications | Testing FAQs | Testing Downloads | Testing Interview Questions | Testing Jobs | Testing Training Institutes

    Gate Articles | Gate Books | Gate Colleges | Gate Downloads | Gate Faqs | Gate Jobs | Gate News | Gate Sample Papers | Gate Training Institutes

    MBA Articles | MBA Books | MBA Case Studies | MBA Business Schools | MBA Current Affairs | MBA Downloads | MBA Events | MBA Notifications | MBA FAQs | MBA Jobs
    MBA Job Consultants | MBA News | MBA Results | MBA Courses | MBA Sample Papers | MBA Interview Questions | MBA Training Institutes

    GRE Articles | GRE Books | GRE Colleges | GRE Downloads | GRE Events | GRE FAQs | GRE News | GRE Training Institutes | GRE Sample Papers

    IAS Articles | IAS Books | IAS Current Affairs | IAS Downloads | IAS Events | IAS FAQs | IAS News | IAS Notifications | IAS UPSC Jobs | IAS Previous Question Papers
    IAS Results | IAS Sample Papers | IAS Interview Questions | IAS Training Institutes | IAS Toppers Interview

    SAP Articles | SAP Books | SAP Certifications | SAP Companies | SAP Study Materials | SAP Events | SAP FAQs | SAP Jobs | SAP Job Consultants
    SAP Links | SAP News | SAP Sample Papers | SAP Interview Questions | SAP Training Institutes |




    Copyright ©2003-2016 CoolInterview.com, All Rights Reserved.
    Privacy Policy | Terms and Conditions



    Cache = 0 Seconds