From ffd7b9272938e93f88d7592f679f4335073032b0 Mon Sep 17 00:00:00 2001 From: Archana550 <51438542+Archana550@users.noreply.github.com> Date: Thu, 3 Oct 2019 09:04:29 +0530 Subject: [PATCH] Update LinearSearch.c --- searching/LinearSearch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searching/LinearSearch.c b/searching/LinearSearch.c index f9964d64..e507bb0c 100644 --- a/searching/LinearSearch.c +++ b/searching/LinearSearch.c @@ -15,7 +15,7 @@ void main(){ scanf("%d",&n); //Taking input for the size of Array int a[n]; - printf("Enter the contents for an array of size %d:\n", s); + printf("Enter the contents for an array of size %d:\n", n); for (i = 0; i < n; i++) scanf("%d", &a[i]);// accepts the values of array elements until the loop terminates// printf("Enter the value to be searched:\n");