what is d pitfalls of registers variables

Answers were Sorted based on User's Feedback



what is d pitfalls of registers variables..

Answer / mohammed

Important pitfalls
Value of the variable stored in register of cpu not for memory

Is This Answer Correct ?    3 Yes 2 No

what is d pitfalls of registers variables..

Answer / arka bandyopadhyay

1-As the value of the register variable is to be stored under the processor register which is limited and if processor is of 16 bit we cannot store float values and higher data type values as 2pow(4bytes)=16bits which a 16 bit processor's registor cannot store hence the variable will now act as an automatic variable


2-Register might be busy in some other operation then also register might not be accessible and hence will act as an automatic variable

Is This Answer Correct ?    1 Yes 0 No

what is d pitfalls of registers variables..

Answer / kiran

As the no. of registers in a CPU are limited,we cannot declare many variables as register

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

#include<stdio.h> #include<conio.h> void main() { float a; clrscr(); a=0.5; if(a==0.5) printf("yes"); else printf("no"); getch(); }

9 Answers   TCS,


What is .obj file in c?

0 Answers  


write a program wch produces its own source code aas its output?

1 Answers   IonIdea,


What is the memory allocated by the following definition ? int (*x)[10];

4 Answers   ADITI, Wipro,


1.find the second maximum in an array? 2.how do you create hash table in c? 3.what is hash collision

9 Answers   HCL, Qualcomm,






how to go with this?

1 Answers   Wipro,


what is develop in c language

2 Answers  


Hi can anyone tell what is a start up code?

0 Answers   CTS,


enum colors {BLACK,BLUE,GREEN} main() { printf("%d..%d..%d",BLACK,BLUE,GREEN); return(1); }

4 Answers   ME,


What does c mean in basketball?

0 Answers  


how to connect oracle in C/C++.

3 Answers   TCS, Wipro,


what is the definition of storage classes?

3 Answers   Wipro,


Categories