C++ code will work natively on the iPhone and on Android. And it will probably produce the code with the best performance. Some work needs to be done to attach the code to the system. On iOS, that usually involves some form of thin Objective-C wrapper.
Read moreCan we use C++ for app development?
You can build native C++ apps for iOS, Android, and Windows devices by using the cross-platform tools available in Visual Studio . Mobile development with C++ is a workload available in the Visual Studio installer.
Read moreCan C++ be used for iOS development?
Short answer, yes , sort of. You can use Objective-C++, which you can read about at Apple Developer Connection.
Read more