The Syntax for printing something as output is different for all the 3 languages.
C
#include <stdio.h>
int main()
{
printf ( "Hello World" );
return 0;
}
|
C++
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World" ;
return 0;
}
|
Python
Comparing Python with C and C++
In the following article, we will compare the 3 most used coding languages from a beginner’s perspective. It will help you to learn basics of all the 3 languages together while saving your time and will also help you to inter shift from one language you know to the other which you don’t. Let’s discuss a brief history of all the 3 languages and then we will move on to the practical learning.