0% found this document useful (0 votes)
2 views1 page

C++ Notes Single Page

The document provides definitions and explanations of various C++ concepts, including the break statement, inline functions, object declaration, arrays, member functions, multilevel inheritance, the 'this' pointer, dynamic objects, miscellaneous functions, and strings. Each concept is briefly described to highlight its purpose and functionality in C++. This serves as a concise reference for understanding fundamental C++ programming elements.

Uploaded by

bhuvaneswar.b390
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

C++ Notes Single Page

The document provides definitions and explanations of various C++ concepts, including the break statement, inline functions, object declaration, arrays, member functions, multilevel inheritance, the 'this' pointer, dynamic objects, miscellaneous functions, and strings. Each concept is briefly described to highlight its purpose and functionality in C++. This serves as a concise reference for understanding fundamental C++ programming elements.

Uploaded by

bhuvaneswar.b390
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Define break statement in C++

In C++, the break statement is used to terminate the execution of a loop or a switch statement immediately, regardless
of the condition. It transfers control to the statement following the loop or switch.

Write a note on inline function


An inline function is a function where the compiler replaces the function call with the actual code of the function during
compilation. This helps eliminate the overhead of a function call.

How will you declare an object in C++?


To declare an object in C++, you first need to define a class, which serves as a blueprint for the object.

State the purpose of array


The primary purpose of an array is to store a collection of elements of the same data type in a contiguous memory
location. This allows for efficient organization and access of multiple data values using a single variable name.

What is member function?


A member function is a function that is defined within a class in C++. It operates on the data members of the class and
defines the behaviors or actions of its objects.

Mention the purpose of multilevel inheritance


Multilevel inheritance in object-oriented programming allows a class to inherit properties and methods from another
class, which in turn inherits from a base class, creating a chain of inheritance.

Show the uses of this pointer


The 'this' pointer in C++ is used to refer to the current instance of the class. It helps in accessing the class's own
members when they are shadowed by parameters or local variables.

What is dynamic object?


A dynamic object in C++ is an object that is created at runtime using the new operator. It is allocated on the heap rather
than the stack.

Recall the need of miscellaneous function


Miscellaneous functions are used to perform various tasks such as manipulating data, interacting with the environment,
or providing specific functionality beyond basic operations.

Define the term string


A string is a sequence of characters used to represent text. In C++, strings can store letters, numbers, symbols, and
spaces.

You might also like