Merge pull request #4 from Saumay-Agrawal/patch-1

Update BubbleSort.c
This commit is contained in:
Chetan Kaushik 2017-02-06 23:04:27 +05:30 committed by GitHub
commit 4e7dffefd4
1 changed files with 5 additions and 3 deletions

View File

@ -7,11 +7,13 @@
#include<stdio.h>
#include<conio.h>
#define SIZE 7
#include<stdlib.h>
int main()
{
int i,j,temp;
int arr[ SIZE ];
int i,j,temp,SIZE;
printf("Enter number of elements to be sorted : ");
scanf("%d",&SIZE);
int *arr = (int*)malloc(SIZE*sizeof(int));
for(i=0; i<SIZE; i++)
{
printf("Enter Number : ");