From f92bed031e578b8139eb79d8bcb2fffd7c1433f7 Mon Sep 17 00:00:00 2001 From: Shivam232002 <74602327+Shivam232002@users.noreply.github.com> Date: Sat, 9 Oct 2021 13:55:25 +0530 Subject: [PATCH] Create rotate the array.c In this array is given u can rotate the elements of the array (i.e print the elements at back which is at index o of an array). --- rotate the array.c | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 rotate the array.c diff --git a/rotate the array.c b/rotate the array.c new file mode 100644 index 0000000..e25b3ae --- /dev/null +++ b/rotate the array.c @@ -0,0 +1,36 @@ +#include + +void left_rotate(int arr,int d, int n) +{ + int i; + for (int i=0;i