C Programming | Networking | General Computer | Exam Questions & Answers | How To Article | Tips & Tricks | PHP Programming | Source Code | PHP | MySql | Pointer | Operators | Constant | Variable | Keyboard | Algorithm | Flowchart | Storage Classes | Function | Ms-Excel, basic of Excel, learn Excel, Online tutorial of Ms-Excel, Excel step by step learn,
i m not getting what is happening after if statement plz ans???
@ Dheeraj Verma,After the if statement, there are start the comparison of first two number from left hand side:( i.e. if first number is greater then to second number then its swapping their position Andif first number is less then to second number then swapping not happen and process of comparison goes to next number i.e. third number ).Hope its help you to understand the process of bubble sorting program in C.
if condition looks wrong here. if arr[j] > arr[j+1] , then swap is require. Please correct the program.
Yes . What you are pointing is correct.
Very good explanation
if condition should be corrected as arr[j]>arr[j+1]. Please correct it.
i m not getting this statementfor(j=0; j<(SIZE-1)-i; j++)
Can uh please tell me difference b/w n and n-1 operations???
if condition should be corrected as arr[j]>arr[j+1]And elements must be printed separately. Instead of this statement -> printf("%d\t",arr[j]);We must print in separate for loop.