Say "Hello, World!" With C++

Objective This is a simple challenge to help you practice printing to stdout. You may also want to complete Solve Me First in C++ before attempting this challenge. We're starting out by printing t

View Solution →

Input and Output C++

Objective In this challenge, we practice reading input from stdin and printing output to stdout. In C++, you can read a single whitespace-separated token of input using cin, and print output to st

View Solution →

Basic Data Types C++

Some C++ data types, their format specifiers, and their most common bit widths are as follows: Int ("%d"): 32 Bit integer Long ("%ld"): 64 bit integer Char ("%c"): Character type

View Solution →

Conditional Statements C++

if and else are two of the most frequently used conditionals in C/C++, and they enable you to execute zero or one conditional statement among many such dependent conditional statements. We use them in

View Solution →

For Loop C++

A for loop is a programming language statement which allows code to be repeatedly executed. The syntax is for ( <expression_1> ; <expression_2> ; <expression_3> ) <statement> express

View Solution →

Functions C++

Functions are a bunch of statements glued together. A function is provided with zero or more arguments, and it executes the statements on it. Based on the return type, it either returns nothing (void)

View Solution →

Pointer C++

A pointer in C++ is used to share a memory address among different contexts (primarily functions). They are used whenever a function needs to modify the content of a variable, but it does not have own

View Solution →