Skip to content

Commit

Permalink
Create Adding two array
Browse files Browse the repository at this point in the history
  • Loading branch information
Naveenkumarsahu9795 authored Oct 3, 2023
1 parent 6621625 commit 2977768
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Adding two array
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#include <stdio.h>
#define ARRAY_SIZE 10

int main() {
int i;
int largeArray[ARRAY_SIZE];

// Populate the array with values
for (i = 0; i < ARRAY_SIZE; i++) {
largeArray[i] = i;
}

// Print the elements of the array
for (i = 0; i < ARRAY_SIZE; i++) {
printf("largeArray[%d] = %d\n", i, largeArray[i]);
}

return 0;
}

0 comments on commit 2977768

Please sign in to comment.