Skip to content
technicalseek
technicalseek
  • TUTORIALS
    • C Programming
    • C++ Programming
    • Java Programming
    • Python Programming
  • SOLVED PROGRAMS
    • C Programs
    • C++ Programs
    • Java Programs
  • DATA STRUCTURES
  • ABOUT US
    • Contact us
    • Privacy Policy
    • Disclaimer
technicalseek
technicalseek
  • SOLVED PROGRAMS
    • C Programs
    • C++ Programs
    • Java Programs

C++ Programs

C++ Programming is a general purpose Object oriented programming (OOP) language and it is an extension of c programming language.

What is object oriented programming: OOP is a programming model or paradigm in which everything is based on objects.

There are different features of object oriented programming language such as everything is object, emphasis on data rather than procedures.

Lets see C++ programs

Basic Programs

  • Hello world program
  • Print number entered by user
  • Addition of two numbers
  • Find Factorial in cpp
  • Program to check whether number is even or odd
  • Print odd Numbers till N
  • Print a to z alphabets
  • Display largest of two numbers
  • Check whether year is leap year or not
  • Print Fibonacci series
  • Find power of number in cpp
  • Print 1 to 100 numbers
  • Reverse given number
  • Swapping of two numbers in c++ (without using third variable)

Programs using functions

  • Simple function program
  • Add two numbers using function
  • Swap two numbers using function
  • Swap two numbers using call by value
  • Swap two numbers using call by reference
  • Find Max number using function
  • Default arguments to the function
  • Function overloading

Programs using class

  • Class and object program in C++
  • Addition of two numbers using class

OOP Concept

  • Find largest among three numbers using friend function

Copyright © 2023 technicalseek | Powered by Astra WordPress Theme