GO
CPP-Basics Archives - GeeksforGeeks
Courses
Tutorials
Interview Prep
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
Misc
7.7K+ articles
C++
3.8K+ articles
C++ Programs
1.5K+ articles
C Language
1.3K+ articles
CPP-Functions
619+ articles
Programming Language
336+ articles
school-programming
240+ articles
CBSE - Class 11
103+ articles
C Basics
78+ articles
CPP-Basics
101+ posts
Recent Articles
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
C++ Escape Sequences
Last Updated: 06 May 2026
Escape sequences are a special way to write characters that can't be typed directly. It starts with a backslash (\) followed by a letter or symbol. They are used inside st...
read more
C++
Picked
cpp-string
CPP-Basics
CPP Examples
Swap Using Pointers
Last Updated: 30 October 2026
Given two pointers a and b, each pointing to an integer, swap the values stored at the addresses pointed by them.Examples:Input: a = 3, b = 5Output: 5 3Explanation: The va...
read more
C++ Programs
C++
Picked
CPP-Basics
CPP Examples
misc-cpp
Type Qualifiers in C++
Last Updated: 26 October 2025
Type qualifiers are keywords that modify the properties of data types, influencing how variables, pointers, or references can be used.They specify how a variable can be us...
read more
C++ Programs
C++
Picked
CPP-Basics
C++-const keyword
CPP Examples
misc-cpp
What are the Rules for Using an Underscore in a C++ Identifier?
Last Updated: 23 July 2025
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
How to Assign Negative Infinity in C++?
Last Updated: 23 July 2025
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
How to Sleep for Milliseconds in C++?
Last Updated: 23 July 2025
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
Why Breaks are used in C++ Switch Statement?
Last Updated: 23 July 2025
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
7 Essential C++ Concepts for Every Developer
Last Updated: 23 July 2025
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
How to Add Multiple Conditions for if Statement in C++?
Last Updated: 23 July 2025
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
How to Use Const Keyword in C++?
Last Updated: 23 July 2025
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 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
Difference Between if-else and switch in C
Last Updated: 23 July 2025
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
Decision Making in C++
Last Updated: 04 November 2026
Decision-making statements control the flow of a program by executing specific blocks of code based on conditions. They allow programs to perform different actions dependi...
read more
C++
Picked
Geeks Premier League
CPP-Basics
Geeks Premier League 2023
C++ Preprocessor And Preprocessor Directives
Last Updated: 21 May 2026
The preprocessor in C++ is a program that processes the source code before compilation begins. It performs tasks like including header files, macro expansion, and conditio...
read more
C++
Picked
Geeks Premier League
CPP-Basics
Geeks Premier League 2023
1
2
3
4
5
6
7