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 |
How do I start a c++ project?
Briefly describe a B+ tree. What is bulk loading in it?
How static variables and local variablesare similar and dissimilar?
You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc()
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?
Explain how a pointer to function can be declared in C++?
What will the line of code below print out and why?
What is a far pointer? where we use it?
Write a program to concatenate two strings.
What is the cout in c++?
Explain the use of this pointer?
What is the sequence of destruction of local objects?