coderz.py

Keep Coding Keep Cheering!

Jump Statement in C++

When encountered, jump statements are used to shift program control from one part of the program to any other part of the program unconditionally. In C++, jump statements are implemented using : continue break return goto continue: Within loops or iterative statements, continue statements are used. The continue statement’s goal is to skip the remaining statements of the current iteration of the loop and proceed to the next iteration. Example: Output: break: The break statement allows us to jump out of the loop instantly, without waiting to […]

September 29, 2022 | C++ | No comments

Loops in C++

In C++ programming language, the repetitive operation is done through loop control instruction. There are three methods by which we can repeat a part of a program.  Types of Loops: Entry Controlled Loops: The test condition is tested before entering the loop body in this type of loop. Entry-controlled loops are For Loop and While […]

September 28, 2022 | C++ | No comments

Decision-Making in C++

In real life, we face situations where we must make decisions and decide what to do next. Similarly, the programmer must specify one or more conditions to be evaluated or tested by the program, as well as a statement or statements to be executed if the condition is determined to be true, and optionally, additional […]

September 27, 2022 | C++ | No comments

C++ sizeof() and typedef Operator

sizeof(): The sizeof keyword is a compile-time unary operator that determines the size of a variable or data type in bytes. sizeof() operator is used in different way according to the operand type, i.e, When operand is a Data Type. When operand is an expression.  Syntax: Example: Output: Typedef: The typedef keyword allows programmers to create new […]

September 25, 2022 | C++ | No comments

Operators in C++

An operator is a symbol that instructs the compiler to perform particular mathematical or logical operations. C++ has a wide range of built-in operators, including the following: Types of operators: Arithmetic Operators Relational Operators Logical Operators Bitwise Operators Assignment Operator Unary operator Ternary or Conditional Operator Misc Operator Arithmetic Operators: These operators are used on […]

September 24, 2022 | C++ | No comments

Variables in C++

A variable is a name that is assigned to a memory location. It is the fundamental storage unit in a program. In C++, each variable has a type that determines the size and layout of the variable’s memory, the range of values that can be stored within that memory, and the set of operations that […]

September 23, 2022 | C++ | No comments

Data type and Modifiers in C++

A data type specifies the type of data a variable can store, for example, integer, floating point, character, etc. C++ supports the following data types: Primary or Built-in or Fundamental data type Derived data types User-defined data types Primary or Built-in or Fundamental data type: These data types are built-in or predefined data types that […]

September 23, 2022 | C++ | No comments

Syntax and Structure of a C++ Program

A specific template structure is used to write the C++ program. Let us see an example of “Hello World” program. Example: Output: Header Files: The C++ programming language defines several headers, each of which contains information that is either required or useful to your program. The header <iostream>  is required for this program. using namespace […]

September 21, 2022 | C++ | No comments

OOPs Concepts in C++

Object-oriented programming (OOPs) is a programming approach or pattern in which programs are structured around objects rather than functions and logic. It partitions the data into two memory areas, namely data and functions, and aids in making the code flexible and modular. Concepts of an Object-Oriented Programming language: There are some basic concepts that act […]

September 20, 2022 | C++ | No comments

Introduction to C++

What is C++? C++ developed by Bjarne Stroustrup at bell labs is a general-purpose programming language developed to enhance the C language to include an object-oriented paradigm. C++ is a middle-level language, encapsulating both high and low-level language features. Features & key-points about C++ programming language: Simple Machine Independent but Platform Dependent Mid-level language Rich library support Speed of […]

September 19, 2022 | C++ | No comments

Advertisement