C++ Coding Interview Questions and Answers - 1

Question: 1

What are the four storage specifiers in C++?

There are four storage specifiers in C++:

Auto

Static

Register and

Extern

Question: 2

What is type cast?

Type cast refers to the process of changing the data type of the value stored in a variable.

Question: 3

What is the use of the operators related to pointer variable?

Pointer variables can store the address of other variables.

But the addresses stored in pointer variables should be of the same data type a pointer variable is pointing to.

Question: 4

What is a pointer and an address?

A pointer is a variable that holds a memory address.

Pointers provide the means through which memory locations of a variable can be directly accessed.

Every byte in the computer’s memory has an address.

Question: 5

What are data types?

The kind of data variable hold in a programming language is called the Data types.

Related Questions