Skip to main content

Difference between C and C++

Difference between C and C++


C & C++ are computer programming languages that are used to write programs to communicate with computer. Here we will learn what is C and C++ programming languages and what are the differences between them.
Firstly we have to know, what is computer programming language?
A computer programming language is the medium of communication between computer hardware and user, where user instruct to the computer through some instructions (written in any programming language) to perform some specific types.
Now a day there are many popular computers programming languages like – Assembly, C, C++, Java, Android, Ruby, Python etc.

C and C++ programming differences

C programming language

C is a middle level computer programming language developed at Bell Lab at 1972 by Dennis Ritchie, C is considered as Middle Level Language because of its features. C language contains features of Low Level Language as well as High Level Language.

C++ programming language

C++ computer programming language was developed by Bjarne Strostroup in 1980. C++ is the super set of containing features of C programming language and Simula67. C++ introduced the concept of Class and Objects.

Difference between C and C++

C Programming LanguageC++ Programming Language
C language was developed in 1972 by Dennis Ritchie.C++ language was developed in 1980 by Bjarne Strostroup.
C is a Procedural Oriented Programming language.C++ is an Object Oriented Programming language.
C has Top Down programming approach.C++ has Bottom Up programming approach.
The extension of a c program is is .cThe extension of a c++ program is .cpp
In c programming language, a big problem divides into small pieces known as functions; this approach of programming is known as Modular programming.In c++ programming language, a big problem divides into Classes and Objects.
Structure in C does not have function declaration features i.e. we cannot declare a function as member function of structure in C.Structure in C++ provide the feature of declare a function as member function of structure.


Comments

Popular posts from this blog

Privacy Policy

My Photo Keyboard built the  Keyboard app as an Ad Supported app. This SERVICE is provided by Keyboard App at no cost and is intended for use as is. This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service. If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy. The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which are accessible at My Photo Keyboard unless otherwise defined in this Privacy Policy. Information Collection and Use For a better experience, while using our Service, I may require you to provide us with certain personally identifiable information, including but not limited to Contact...

Graphics in C: Using Colors in Text Mode

Graphics in C/C++: Using Colors in Text Mode In Advance Learning Tutorial, today we will learn about the colors in C / C + +. So far, you have used only two colors in your program Black and White, Black color in Background and White color foreground, i.e. to print the character. By default, all compilers use these two colors. But if you want to print any character on your screen from the color of your choice, then you can do it with the help of the functions described below. Keep in mind that the functions described below will only run on Text Mode. Using the colors, you can make your program more attractive in C /C++. Total 15 colors have been defined in C++. To use any color, you can use the name of that color or the corresponding value of that color. This value is already defined in the compiler. All the 15 colors and their values are given in the table below. Values of Colors 1. BLACK 0 2. BLUE 1 3. GREEN 2 4. CYAN 3 5. RED 4 6...

Fibonacci series C program

Fibonacci series C program #include <stdio.h>   int  main ( ) {    int  n ,  first  =   0 ,  second  =   1 ,  next ,  c ;      printf ( "Enter the number of terms \n " ) ;    scanf ( "%d" ,   & n ) ;      printf ( "First %d terms of Fibonacci series are: \n " ,  n ) ;      for   ( c  =   0 ;  c  <  n ;  c ++ )    {      if   ( c  <=   1 )       next  =  c ;      else      {       next  =  first  +  second ;       first  =  second ;       second  =  next ;      }      printf ( "%d \n " ,  next ) ;    }      return   0 ; } Output : Ent...