How to Run C and C++ Programs on Android

Through this tutorial, you will learn how to install the c4droid application on your android device and run C/C++ programs in very easy steps.

How to Run C and C++ Programs on Android

C C++ Android

C4droid is a popular app for Android devices that enables you to write and run C and C++ programs on android devices.

It provides an integrated development environment (IDE) for coding, compiling, and executing C and C++ programs. Under the hood, C4droid uses several technologies and tools to provide its functionality.

At its core, C4droid uses a modified version of the GCC (GNU Compiler Collection) toolchain, a popular open-source compiler suite that supports a wide range of programming languages including C and C++. The GCC toolchain consists of several components, including a preprocessor, a compiler, and a linker, that work together to translate human-readable source code into executable machine code.

Download the C4Droid App

The C4droid is a paid application at around $2.99 USD.

You can check the in Playstore as:

C4droid - C/C++ compiler & IDE - Apps on Google Play
The most powerful and user-friendly C/C++ compiler & IDE on Google Play

Once purchased, install the app on your device and a lauch.

Once satisfied with your code. Click Save, Compile, and Run from the bottom bar.

Run C/C++ Using CxCompile

Another tool we can use to run C/C++ programs on Android is CxStudio

CxStudio is an integrated development environment(IDE) for developing C/C++ programs on your device.
It comes with a C/C++ compiler(clang) preinstalled as well as make and cmake.



  • Auto backup if you leave the app without saving.
  • Undo and Redo.
  • Support for characters not normally present in the virtual keyboard like tabs and arrows.


  • Preinstalled with clang, make, cmake, bash etc
  • Access the shell and commands that ship with android.
  • Support for tab and arrows even if the virtual keyboard lacks them.

File Manager

  • Access your files without leaving the app.
  • Copy, Paste and Delete.

It works a full featured IDE for Android and other platforms. You can download and install it on your Android device using the link below:

CxStudio - C/C++ IDE - Apps on Google Play
A powerful C/C++ IDE for developing C/C++ programs on your android device.

Edit the source code:

Compile your code using the Play icon from the top and check the console for the output.

You can browse files in your system using the built-in File Manager.

You can also execute commands from the terminal.


This tutorial showed two main ways you can use to create and execute C/C++ Programs from your Android device.

Table of Contents
Great! Next, complete checkout for full access to GeekBits.
Welcome back! You've successfully signed in.
You've successfully subscribed to GeekBits.
Success! Your account is fully activated, you now have access to all content.
Success! Your billing info has been updated.
Your billing was not updated.