From bceb8eeae96a7996ecca05f0af299aa5475796ac Mon Sep 17 00:00:00 2001 From: AdithyakrishnaV Date: Thu, 23 Sep 2021 13:52:17 +0530 Subject: [PATCH] C++ notes --- subarray.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 subarray.cpp diff --git a/subarray.cpp b/subarray.cpp new file mode 100644 index 0000000..22288c7 --- /dev/null +++ b/subarray.cpp @@ -0,0 +1,18 @@ +#include +using namespace std; + +int main(){ + int arr[]={1,2,3,4,5}; + int n=5; + + for(int start=0; start