C Programing | Make / Compile C programs in android | Programing in android

Pubblicato il: 26 settembre 2021
sul canale di: Nikhil Tiwari
51
1

Hello I am a ( NOOB ) [ New in Programing ] ..


This was a demo of a idea 😅 I had



This is one of the way by which we can make C Programs in android and how we can compile and run as well in CLI ( without any graphical interface)..


Here I Used Termux as a cli tool to install and use GCC

i've used GCC as a compiler and nano as a text editor

( U can use Vim If u Want 2 )
[ I am not used to of it so i used nano instead 😇 ]


Since The termux which is avaliable on playstore is not the latest version so
I got Latesest version of termux from it's official website 🙄 Which Redirected to a download page on Fdroid 😏 and i hhad to find the Correct "Download Button" 🤓 i did very hard work here .. ( comment if You Agree😛)


Link 2 Download Termux : https://f-droid.org/repo/com.termux_1...


Commands I used :


1 : pkg update
2 : pkg upgrade

3 : pkg install clang
---------------------------------------| c compiler installed !
[Nano Is a CLI Text-Editor ]

[ hello.c is the file name You can pick any name]

4 : nano hello.c
[ here if we do ls we shuld be able to see hello.c file ] (hello.c created)
[ Now we must Compile it]

5 : gcc hello.c

[ After a sucessfull Compilation we will get a.out file ]
( we can directly execute this command to run our Program )

6 : ./a.out




---------------------------------------------|


I hope That Helped! Still having Issues? Comment Below

i'll try to answer ..


See You On Next Video ... ( Based On your Comments 😊)


In questa pagina del sito puoi guardare il video online C Programing | Make / Compile C programs in android | Programing in android della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Nikhil Tiwari 26 settembre 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 51 volte e gli è piaciuto 1 spettatori. Buona visione!