Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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

#define MAX(x,y) (x) > (y) ? (x) : (y) main() { int i = 10, j = 5, k = 0; k = MAX(i++, ++j); printf("%d %d %d", i,j,k); } what will the values of i , j and k? }

14 Answers   CDAC, GATE, NDS, TCS,


can we print any string without using terminator?

2 Answers   Infosys, TCS,


which will be first in c compiling ,linking or compiling ,debugging.

3 Answers   Sonata,


what is the difference between NULL('\0') and 0?

14 Answers   Microsoft,


wats SIZE_T meant for?

1 Answers  






what does static variable mean?

0 Answers   TCS,


Are pointers integers in c?

0 Answers  


How to implement variable argument functions ?

1 Answers   HP,


biggest of two no's with out using if condition statement

8 Answers  


find the size of structure without using the size of function

1 Answers   Bosch,


What is function what are the types of function?

0 Answers  


what is d pitfalls of registers variables

3 Answers   TCS,






Categories