Tutorials
Courses
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
22.8K+ articles
Misc
8.8K+ articles
C++
4.3K+ articles
C++ Programs
2.4K+ articles
C Language
1.8K+ articles
Computer Science Fundamentals
1.5K+ articles
CPP-Functions
619+ articles
Programming Language
592+ articles
C Basics
78+ articles
CPP-Basics
102+ posts
Recent Articles
Popular Articles
C++ Preprocessor And Preprocessor Directives
Last Updated: 05 April 2025
The preprocessor in C++ is a tool that process the code before it is compiled by the compiler. It does many tasks such as including header files, conditional compilation, ...
read more
C++
Picked
Geeks Premier League
CPP-Basics
Geeks Premier League 2023
Decision Making in C++
Last Updated: 14 May 2025
Decision-making is the process to make a decision about which part of the code should be executed or not based on some condition. Decision-making in C++ involves the usage...
read more
C++
Picked
Geeks Premier League
CPP-Basics
Geeks Premier League 2023
Difference Between if-else and switch in C
Last Updated: 25 January 2024
In C programming both switch statements and if-else statements are used to perform decision-making and control the flow of the program according to predefined conditions. ...
read more
C++
Geeks Premier League
CPP-Basics
cpp-switch
TCS-coding-questions
Volkswagen IT Services
Geeks Premier League 2023
How to Compare Float and Double While Accounting for Precision Loss?
Last Updated: 29 January 2024
In C++ programming, real numbers are represented in a limited amount of memory so accuracy loss is a frequent worry when dealing with floating-point and double numbers in ...
read more
C++ Programs
C++
Picked
CPP-Basics
Misc C++
CPP Examples
How to Use Const Keyword in C++?
Last Updated: 02 February 2024
In C++, the const keyword is used to declare constants or unchangeable values. It indicates an immutable object that cannot be modified. The const keyword can be applied t...
read more
C++ Programs
C++
Picked
CPP-Basics
CPP Examples
How to Add Multiple Conditions for if Statement in C++?
Last Updated: 21 May 2024
In C++, an if statement is used to decide whether a specific block of code should execute, depending on a given condition. It usually evaluate a single expression to check...
read more
C++ Programs
C++
Picked
CPP-Basics
CPP Examples
7 Essential C++ Concepts for Every Developer
Last Updated: 29 May 2024
C++ is a powerful, high-performance programming language used in a wide range of applications, from game development to systems programming. To master C++, it's crucial to...
read more
C++ Programs
C++
Picked
CPP-Basics
CPP Examples
misc-cpp
Why Breaks are used in C++ Switch Statement?
Last Updated: 21 May 2024
In C++, the switch statement allows us to select a code block to be executed based on some conditions among many alternatives (listed in the form of cases). Thebreakkeywor...
read more
C++ Programs
C++
Picked
CPP-Basics
CPP Examples
How to Sleep for Milliseconds in C++?
Last Updated: 28 May 2024
In programming, sleeping for milliseconds means pausing the execution of the current thread for a specified number of milliseconds, it is often used in cases like creating...
read more
C++ Programs
C++
Picked
CPP-Basics
CPP Examples
misc-cpp
How to Assign Negative Infinity in C++?
Last Updated: 28 May 2024
In C++, the infinity is written asinf. We get infinity as a result when a positive number is divided by a null value or when a value is much greater and cannot be stored i...
read more
C++ Programs
C++
Picked
CPP-Basics
CPP Examples
misc-cpp
What are the Rules for Using an Underscore in a C++ Identifier?
Last Updated: 29 May 2024
In C++, an identifier is a unique name that is used to define a variable, function, class or object, and etc in a program. It can consist of numbers, letters, and undersco...
read more
C++ Programs
C++
Picked
CPP-Basics
CPP Examples
misc-cpp
Type Qualifiers in C++
Last Updated: 07 June 2024
In C++, type qualifiers are keywords that modify the properties of data types, influencing how variables, pointers, or references can be used. These qualifiers enhance var...
read more
C++ Programs
C++
Picked
CPP-Basics
C++-const keyword
CPP Examples
misc-cpp
How to Swap Two Numbers Using Pointers in C++?
Last Updated: 28 May 2024
Swapping the values of two numbers is a very common operation in programming, which is often used to understand the basics of variables, pointers, and function calls. In t...
read more
C++ Programs
C++
Picked
CPP-Basics
CPP Examples
misc-cpp
C++ Escape Sequences
Last Updated: 03 June 2024
Escape sequences in C++ are characters or sequences of characters that can be used inside a string literal to represent some special characters. They are prefixed with a b...
read more
C++
Picked
cpp-string
CPP-Basics
CPP Examples
goto Statement in C++
Last Updated: 16 July 2024
The goto statement in C++ is a control flow statement that provides for an unconditional jump to the same function's predefined label statement. In simple terms, the goto ...
read more
C++
Picked
CPP-Basics
1
2
3
4
5
6
7
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !