You can add C and C++ code to your Android project by placing the code into a cpp directory in your project module . When you build your project, this code is compiled into a native library that Gradle can package with your app.
Read moreCan we do C++ in Mobile?
Android is based on Linux Kernel so it’s definitely possible to compile & run C/C++ programs on Android .
Read moreIs C++ required for app development?
C++ is faster than most of the other programming languages and also supports multithreading with concurrency. Thus in Applications where the speed along with concurrency is required, C++ is the most sought-after language for development .
Read more