forked from sujan-poudel-03/DSA
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 260cac4
Showing
5 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"tasks": [ | ||
{ | ||
"type": "cppbuild", | ||
"label": "C/C++: gcc.exe build active file", | ||
"command": "C:\\MinGW\\bin\\gcc.exe", | ||
"args": [ | ||
"-fdiagnostics-color=always", | ||
"-g", | ||
"${file}", | ||
"-o", | ||
"${fileDirname}\\${fileBasenameNoExtension}.exe" | ||
], | ||
"options": { | ||
"cwd": "${fileDirname}" | ||
}, | ||
"problemMatcher": [ | ||
"$gcc" | ||
], | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"detail": "Task generated by Debugger." | ||
} | ||
], | ||
"version": "2.0.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#include <stdio.h> | ||
|
||
int main(){ | ||
int LA[3], i; | ||
printf("Array Before Insertion:\n"); | ||
for(i = 0; i < 3; i++) | ||
printf("LA[%d] = %d \n", i, LA[i]); | ||
printf("Inserting Elements.. "); | ||
printf("The array elements after insertion :\n"); // prints array values | ||
for(i = 0; i < 3; i++) { | ||
LA[i] = i + 2; | ||
printf("LA[%d] = %d \n", i, LA[i]); | ||
} | ||
return 0; | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
public class ArrayDemo { | ||
public static void main(String []args) { | ||
int LA[] = new int[3]; | ||
System.out.println("Array Before Insertion:"); | ||
for(int i = 0; i < 3; i++) | ||
System.out.println("LA[" + i + "] = " + LA[i]); //prints empty array | ||
System.out.println("Inserting Elements.."); | ||
|
||
// Printing Array after Insertion | ||
|
||
System.out.println("Array After Insertion:"); | ||
for(int i = 0; i < 3; i++) { | ||
LA[i] = i+3; | ||
System.out.println("LA[" + i + "] = " + LA[i]); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# DSA |