From d7e7e5a2659863e6630f11a55be6ce3502353820 Mon Sep 17 00:00:00 2001 From: Komal Gupta Date: Tue, 25 May 2021 13:07:31 +0530 Subject: [PATCH 1/3] Create Combine_two_arrays.cpp --- Array/Combine_two_arrays.cpp | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Array/Combine_two_arrays.cpp diff --git a/Array/Combine_two_arrays.cpp b/Array/Combine_two_arrays.cpp new file mode 100644 index 0000000..5b3e91d --- /dev/null +++ b/Array/Combine_two_arrays.cpp @@ -0,0 +1,34 @@ +#include +void main(){ + int a[20], b[20],c[60],size1,i,size2,size,k,j; + printf("\n enter the size of the first array:"); + scanf("%d",&size1); + printf("\n enter the element of the first array :"); + for(i=0;i Date: Tue, 25 May 2021 13:38:40 +0530 Subject: [PATCH 2/3] Rename Combine_two_arrays.cpp to Combine_two_arrays.c --- Array/{Combine_two_arrays.cpp => Combine_two_arrays.c} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Array/{Combine_two_arrays.cpp => Combine_two_arrays.c} (100%) diff --git a/Array/Combine_two_arrays.cpp b/Array/Combine_two_arrays.c similarity index 100% rename from Array/Combine_two_arrays.cpp rename to Array/Combine_two_arrays.c From a32fec6733b13c3145a63a11814f10f78e9a7402 Mon Sep 17 00:00:00 2001 From: Komal Gupta Date: Tue, 25 May 2021 14:25:36 +0530 Subject: [PATCH 3/3] Create reverse_array.c --- Array/reverse_array.c | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Array/reverse_array.c diff --git a/Array/reverse_array.c b/Array/reverse_array.c new file mode 100644 index 0000000..c37dcae --- /dev/null +++ b/Array/reverse_array.c @@ -0,0 +1,36 @@ + + /* + + enter the size of the array:5 + + enter the 5 element of the array: + 2 6 7 9 1 + + The reverse array: + 1 9 7 6 2 + */ + +#include +void main(){ + int array[20], b[20],size,i,s; + printf("\n enter the size of the array:"); + scanf("%d",&size); + printf("\n enter the %d element of the array: \n ",size); + for(i=0;i