aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--challenge-122/karishma/c++/ch1.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/challenge-122/karishma/c++/ch1.cpp b/challenge-122/karishma/c++/ch1.cpp
index 78da573d58..821e88134d 100644
--- a/challenge-122/karishma/c++/ch1.cpp
+++ b/challenge-122/karishma/c++/ch1.cpp
@@ -4,22 +4,6 @@ using namespace std;
int main() {
int n=5;
int ptr[]={10,20,30,40,50};
- //int* ptr;
- // cout<<"Enter total number of inputs to be entered: ";
- // cin>>n;
- // ptr = (int*)calloc(n, sizeof(int));
- // if (ptr == NULL) {
- // cout<<"Memory not allocated.\n";
- // exit(0);
- // }
- // else {
- // for (int i = 1; i <= n; i++) {
- // int temp=0;
- // scanf("%d",&temp);
- // ptr[i] = temp;
- // }
- // cout<<endl;
- // }
int sum = 0;
for (int j = 1; j <= n; j++) {
sum += ptr[j-1];