coderz.py

Keep Coding Keep Cheering!

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

Layout Managers in Java

Layout Managers are used to arrange components in a specific order. The Java Layout Managers allow us to control the positioning and size of GUI form components. Layout Manager is an interface that is implemented by all layout manager classes. Several AWT and Swing classes provide general-purpose layout managers: BorderLayout BoxLayout CardLayout FlowLayout GridBagLayout GridLayout […]

September 19, 2022 | Java | No comments

Deque Interface in Java

The Deque interface in java.util package is a queue interface subtype. A linear collection with the ability to insert and remove elements at both ends. Deque is an abbreviation for “double-ended queue” and is usually pronounced “deck.” It can function as either a queue (first-in-first-out/FIFO) or a stack (last-in-first-out/LIFO). Declaration: Methods of Deque interface: Method […]

September 17, 2022 | Java | No comments

Advertisement