From fe425d5203650315453b1e013dd99565e2d79dee Mon Sep 17 00:00:00 2001 From: pulkit-M <56073771+pulkit-M@users.noreply.github.com> Date: Sat, 12 Oct 2019 17:03:11 +0530 Subject: [PATCH] Update BinarySearch.c Was Printing the output simultaneously. Adding "\n" in code to print output in new line. --- Searching/Binary Search/C/BinarySearch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Searching/Binary Search/C/BinarySearch.c b/Searching/Binary Search/C/BinarySearch.c index cd106437..d40d053e 100644 --- a/Searching/Binary Search/C/BinarySearch.c +++ b/Searching/Binary Search/C/BinarySearch.c @@ -42,7 +42,7 @@ int binarySearch(int itemList[],int itemListSize,int item) int main(int argc,char* argv[]) { int arr[] = {1,2,3,4,5}; - printf("%d",binarySearch(arr,sizeof(arr)/sizeof(arr[0]),3)); + printf("%d\n",binarySearch(arr,sizeof(arr)/sizeof(arr[0]),3)); printf("%d",binarySearch(arr,sizeof(arr)/sizeof(arr[0]),0)); }