Akansha Kumari has Published 79 Articles

What does the restrict keyword mean in C++?

Akansha Kumari

Akansha Kumari

Updated on 29-May-2025 15:38:35

2K+ Views

There's no such keyword in C++. A list of C++ keywords can be found in section 2.11/1 of the C++ language standard. It is a keyword in the C99 version of the C language and not in C++. In C, A restrict qualified pointer (or reference) is basically a ... Read More

How are C++ Local and Global variables initialized by default?

Akansha Kumari

Akansha Kumari

Updated on 29-May-2025 15:36:59

809 Views

In C++, variables can be declared as global or local depending on the scope of their declaration. Local variables are declared inside functions or blocks whereas global variables are declared outside all functions. Therefore their initialization behaviour also differs. In this article we will learn their different initialization behaviour in ... Read More

Tokens vs Identifiers vs Keywords in C++

Akansha Kumari

Akansha Kumari

Updated on 28-May-2025 19:05:08

1K+ Views

In C++, tokens, identifiers, and keywords all are fundamental elements of a program. Tokens are the smallest units of code which are combine together to form complete program, where both keywords and identifiers are the types of tokens. The keywords are reserved words in the language, where each provides separate ... Read More

What are type qualifiers in C++?

Akansha Kumari

Akansha Kumari

Updated on 28-May-2025 19:04:29

2K+ Views

A type qualifier is a keyword in C++ that is applied to a variable, function, pointer, or parameter to add an extra feature or quality to it. For example, const int is a qualified type representing a constant integer, while int is an unqualified type, which is simply just an ... Read More

What is the difference between #define and const Keyword in C++?

Akansha Kumari

Akansha Kumari

Updated on 28-May-2025 19:04:05

426 Views

In C++, both #define and const are used to define constants in a program. The #define is a preprocessor directive that creates macros with their fixed values whereas const is a keyword which declare value of variable as constant, meaning its value cannot be changed after intialization. Therefore they have ... Read More

Getting Started with C++ in Visual Studio

Akansha Kumari

Akansha Kumari

Updated on 22-May-2025 19:47:44

4K+ Views

In this article, you will learn the setup to build and compile the C++ code in Visual Studio. Here you will become familiar with many of the tools and dialog boxes that you can use when you develop applications in C++. In this, we'll create a "Hello, World" style console ... Read More

What does an auto keyword do in C++?

Akansha Kumari

Akansha Kumari

Updated on 15-May-2025 17:09:35

8K+ Views

The auto keyword in C++ is used to automatically determine the type of variables from their initializer. This means you don’t need to explicitly tell the compiler the variable's data type. It lets the compiler determine the variable's type during compile time.C++ auto KeywordAuto was a keyword that C++ "inherited" ... Read More

The extern storage class in C++

Akansha Kumari

Akansha Kumari

Updated on 15-May-2025 16:22:14

3K+ Views

The extern storage class specifier lets you declare objects that several source files can use.What is Extern Storage Class in C++?The extern storage class in C++ is used to declare an object (global variable or function) that can be accessed by multiple source files. When a variable is declared with ... Read More

What is arrow operator in C++?

Akansha Kumari

Akansha Kumari

Updated on 15-May-2025 16:19:06

3K+ Views

The array operator provides the direct access to array elements using their index. What is Array Operator in C++? The arrow operator in C++ is also known as the member access operator, which is used to access a member of a class, structure, or union with the help of a ... Read More

The mutable storage class in C++

Akansha Kumari

Akansha Kumari

Updated on 12-May-2025 19:38:58

2K+ Views

The mutable storage class in C++ is a property that gives you access to modify the non-static data members (not static data members) of a class, even when the object is declared as constant. This is mainly useful for scenarios where the data needs modification without affecting the logical state of ... Read More

Advertisements