Hi friends
what difference between c and c++?
Regards:
Packers and Movers in Thiruvanmiyur:LST
Seriously? You couldn't do a simple Google search for this information?
C - older, not OOP
C++ - newer, OOP
C:
1 2 3 4 5 6
|
#include <stdio.h>
int main(int argc, const char *argv[]) {
printf("Hello, World!");
return 0;
}
|
C++:
1 2 3 4 5 6 7 8
|
#include <iostream>
using namespace std;
int main(int argc, const char *argv[])
{
cout<<"Hello, World!"<<endl;
return 0;
}
|
Most C libraries are compatible with C++, but not vise-versa
Topic archived. No new replies allowed.