Basics of C and C++

C is a powerful general-purpose structured programming language. It is generally used to develop software like operating systems, databases, compilers, etc. C programming is a high-level programming language and is an efficient and a bit easy language for beginners. It was developed in 1972 by Dennis M. Ritchie at the Bell Telephone Laboratories to develop the UNIX operating system. C is the most widely used computer language. The entire UNIX OS was written in C. 

The knowledge of programming is incomplete without the C language. It continues to dominate the fortress of programming.

Basic Syntax of C:

#include <stdio.h>

int main() {

   printf(“Hello, World!”);

   return 0;

}

C++ is an object-oriented computer language developed by notable computer scientist Bjorne Stroustrop. C++ is the evolved version of C. It allows developers to create programs that can run on different operating systems or platforms very easily. The basic concept of C++ is OOP (Object Oriented Programming) in which Class, Objects, Member Function, Data Member are the different components that need to be defined. Data variables and functions defined inside the class are called data member and member functions respectively.

Basic Syntax of C++:

#include <iostream>

int main() {

    std::cout << “Hello World”;

    return 0;

}

Some of the applications of C and C++ programming that we are countering every day are: –

  • Adobe Photoshop, one of the most popularly used photo editors, was created with the help of C. Later on, Adobe Premiere & Illustrator were also developed using C.
  • C++ is also one of the best programming language which was the gift of C. C++ is basically the object oriented version of C.
  • Tic-Tac-Toe, The Snake game, Chess etc are the games developed using C.
  • Mozilla Firefox and Thunderbird were open-source email client projects, they were written in C/C++
  • Win amp media player of Microsoft is a popular software that has been catering to all our audio/video needs for decades now, This software is developed in C++.
  • The fact that C++ is a strongly typed and fast language which makes it an ideal candidate for writing operating systems. Some of the parts of Apple OS X are written in C++. Similarly, some parts of the iPod are also written in C++.

Thank you Suwarna Pyakurel, +2-SOS HGS Sanothimi

Leave a Reply

Your email address will not be published. Required fields are marked *