logo

CuriousTab

CuriousTab

Discussion


Home Technical Questions Programming Comments

  • Question
  • Write a c program for selection sort.


  • Correct Answer
  • include int main(){ int s,i,j,temp,a[20]; printf("Enter total elements: "); scanf("%d",&s); printf("Enter %d elements: ",s); for(i=0;ia[j]){ temp=a[i]; a[i]=a[j]; a[j]=temp; } } } printf("After sorting is: "); for(i=0;i


  • Programming problems


    Search Results


    • 1. Write a c program to print multiplication table
    • Discuss
    • 2. Write a c program to check whether a number is strong or not.
    • Discuss
    • 3. C program to find the factorial of a given number
    • Discuss
    • 4. Write a program to generate the Fibonacci series in c?
    • Discuss
    • 5. Swap two variables without using third variable.
    • Discuss
    • 6. Write a c program for quick sort.
    • Discuss
    • 7. Write a c program for insertion sort.
    • Discuss
    • 8. Write a c program for merge sort.
    • Discuss
    • 9. Write a c program for binary search.
    • Discuss
    • 10. Write a program for matrix multiplication in c
    • Discuss


    Comments

    There are no comments.

Enter a new Comment