Explain the register storage classes in c++.



Explain the register storage classes in c++...

Answer / Mirza Kashif Beg

"The 'register' keyword in C++ is a hint to the compiler that a variable should be stored in a register instead of memory. This results in faster access times but has limited storage space available on registers. However, the compiler decides whether to use the register or not based on its own optimization strategies"

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

How do I start a c++ project?

1 Answers  


Briefly describe a B+ tree. What is bulk loading in it?

1 Answers   Wipro,


How static variables and local variablesare similar and dissimilar?

1 Answers  


You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc()

1 Answers  


How can you quickly find the number of elements stored in a a) static array b) dynamic array ? Why is it difficult to store linked list in an array?how can you find the nodes with repetetive data in a linked list?

1 Answers  


Explain how a pointer to function can be declared in C++?

1 Answers  


What will the line of code below print out and why?

1 Answers  


What is a far pointer? where we use it?

1 Answers  


Write a program to concatenate two strings.

1 Answers  


What is the cout in c++?

1 Answers  


Explain the use of this pointer?

1 Answers  


What is the sequence of destruction of local objects?

1 Answers  


Categories