Tell me what is the purpose of 'register' keyword in c language?



Tell me what is the purpose of 'register' keyword in c language?..

Answer / Rehan Ahmad

The register keyword in C asks the compiler to allocate the specified variable in a register instead of RAM. This can improve performance by reducing access time for small variables, but not all variables can be stored in registers due to limited space.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

What is the difference b/w Structure & Array?

6 Answers  


what is const volatile?

2 Answers  


What is the difference between strcpy() and memcpy() function in c programming?

1 Answers  


Can we access array using pointer in c language?

1 Answers  


Where local variables are stored in c?

1 Answers  


Hai what is the different types of versions and their differences

1 Answers  


#include <stdio.h> void main() { int i=-1,j=1,k,l; k=!i&&j; l=!i||j; printf ("%d%d",k,l) ; }

3 Answers   SRG,


can we change the default calling convention in c if yes than how.........?

1 Answers   Aptech,


How pointer is different from array?

1 Answers  


Write a program to compute the following 1!+2!+...n!

4 Answers  


Can you please explain the difference between syntax vs logical error?

1 Answers  


which is the best antivirus and how to update it

7 Answers   Infosys,


Categories