What are register variables?
Answer / Suman Nagar
The "register" keyword in C++ is used to request that the compiler to store the variable in a register instead of main memory (RAM). The primary purpose of using register variables is to increase the performance by reducing the number of memory accesses. However, the actual placement of variables in registers is determined by the compiler and not all variables requested as "register" will be stored in the registers because registers are limited in number.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the difference between mutex and binary semaphore?
Comment on local and global scope of a variable.
Differentiate between a deep copy and a shallow copy?
Write a code/algo to find the frequency of each element in an array?
What is c++ library?
What is buffering in c++?
What is low level language in simple words?
What is size of string in c++?
How do you allocate and deallocate memory in C++?
Explain rethrowing exceptions with an example?
why and when we can declar member fuction as a private in the class?
What are function prototypes?