Skip to content

Instantly share code, notes, and snippets.

View VirajKanse's full-sized avatar

ADevDX VirajKanse

View GitHub Profile
#include <stdio.h>
int main()
{
int i, j, n;
printf("Enter value of n : ");
scanf("%d", &n);
#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");
#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");
@VirajKanse
VirajKanse / gist:1c0db872cd7685632c02f8826397f190
Last active December 28, 2023 11:44
GCC / Clang C/C++ Compiler On Android Using Termux (Linux Environment)
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"
{
"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}"
}