This file contains hidden or 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
{ | |
"shell_cmd" : "gcc $file_name -o ${file_base_name}", | |
"working_dir" : "$file_path", | |
"variants": | |
[ | |
{ | |
"name": "Run", | |
"shell_cmd": "gcc $file_name -o ${file_base_name} && ${file_path}/${file_base_name}" | |
} |
This file contains hidden or 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
Install Termux App. | |
type "apt update" | |
Then We have to install a text editor to write our code so type "apt install vim" for vim text editor | |
or u can also use nano text editor for nano type "apt install nano" | |
Now Clang Installation type "apt install clang" and wait for download completes. | |
now to create a file simply type vim filename.c or .cpp or nano filename.c or cpp | |
then u will able to write ur code . | |
write.....to save ur code simply press esc then type ":wq" | |
now code is ready to compile | |
type "clang filename.c -o filename" |
This file contains hidden or 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
#include<stdio.h> | |
void push(); | |
void pop(); | |
void display(); | |
main() | |
{ | |
int n; | |
clrscr(); | |
printf("\n------------\n"); | |
printf("\n1.PUSH\n2.POP\n3.DISPLAY\n4.EXIT\n"); |
This file contains hidden or 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
#include<stdio.h> | |
void push(); | |
void pop(); | |
void display(); | |
main() | |
{ | |
int n; | |
clrscr(); | |
printf("\n------------\n"); | |
printf("\n1.PUSH\n2.POP\n3.DISPLAY\n4.EXIT\n"); |
This file contains hidden or 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
#include <stdio.h> | |
int main() | |
{ | |
int i, j, n; | |
printf("Enter value of n : "); | |
scanf("%d", &n); | |