What is the difference between c++, objective-c and objective-c++?
16,429
C++ and Objective C were/are two different approaches to adding object orientation to C. Current objective C compilers also accept C++ as input, so you can build a program with some files written in Objective-C and other files written in C++. When C++ is used this way, it's often called Objective-C++.
Author by
Madan Mohan
Updated on June 03, 2022Comments
-
Madan Mohan almost 2 years
I want to know the difference between c++ and objective-c and objective-c++. Can any one give me the difference and Can we use the c++ for iPhone development
Thank you, Madan Mohan
-
Madan Mohan over 13 yearsOkay, Thank you. Can we use C++ for iPhone development
-
Jerry Coffin over 13 years@Madan: Yes. You need to use at least a little Objective C where your code interfaces with the iPhone's built-in libraries, but you can use C++ for pretty much everything else.
-
justin over 13 yearscorrection: if you use both languages very well and binary size and memory consumption are your top priorities, c++ will typically be the smaller in binary size and memory consumption. added bonus: c++ programs will generally execute faster than objc programs. don't bother rewriting your existing c++ programs as objc programs.