C is structured programed language which is developed by Dennis Ritchie in the year 1970s. The main aim of C language is communicate with the hardware, kernels and other peripheral devices. C language is also known sometimes as system programming language, Procedural oriented Programming Language, Structured Programming Language, Mid-Level Programming Language etc.
Syntax:-
#include <stdio.h>
void main()
{
printf("Hello World");
}
In above example we include #include <stdio.h> which is a standard input output library functions compulsory to start any C program. Void main is the entry point while writing a C program. The printf() function is used to display any output to the screen. You can specify any useful message in printf function between double quotes such as printf("Hello World").
C++ is an object oriented programming language which is developed by Danish computer scientist Bjarne Stroustrup in the year 1979 at Bell Labs. Mainly deals with computer hardware at low level to memory management, to improve the performance also develop the robust software.
Syntax:-
#include <iostream>
using namespace std;
int main() {
cout << "Hello World";
return 0;
}
In above example C++ program will print the Hello World while execution on console screen.
In reality C and C++ both have different functionality as per usage and requirement.
TCCI offers basic programing course like C, C++ and so on as per student convenient.
For More Information:
Call us @ 9825618292
Visit us @ http://tccicomputercoaching.com
Comments