int i,j,c;
for(i=0;i<N-1;i++)
for(j=i+1;j<N;j++)
if ( T[i] > T[j] ) {
c = T[i];
T[i] = T[j];
T[j] = c;
}
Code Example |
---|
C :: colourful text in c |
C :: c colourful text |
C :: C bold output |
C :: pointer to a structure in c |
C :: swapping of two numbers in c without temporary variable |
C :: myFgets in c |
C :: buble sort c |
C :: check dns server in linux |
C :: lewis hamilton |
C :: shuffle function in c |
C :: how to print boolean in c |
C :: vowel or consonant in c |
C :: Creating a process in C |
C :: first program in c |
C :: c format specifiers |
C :: Call by reference to pass an array to the function in C- |
C :: c printf uint32_t |
C :: c how to check a palindrome string |
C :: ROUNDING decimal number in C |
C :: take long long input in c |
C :: c program to find the factorial of a number |
C :: implicit declaration of function ‘usleep’ [-Wimplicit-function-declaration] |
C :: c sleep milliseconds |
C :: addition of two numbers in c |
C :: fwrite in c |
C :: C (ANSI) |
C :: c exit |
C :: how to empty array in c |
C :: include ‘<stdlib.h’ or provide a declaration of ‘exit’ |
C :: getchar c |