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

There seem to be a few missing operators ..

0 Answers  


what wud be the output? main() { char *str[]={ "MANISH" "KUMAR" "CHOUDHARY" }; printf("\nstring1=%s",str[0]); printf("\nstring2=%s",str[1]); printf("\nstring3=%s",str[2]); a)string1=Manish string2=Kumar string3=Choudhary b)string1=Manish string2=Manish string3=Manish c)string1=Manish Kumar Choudhary string2=(null) string3=(null) d)Compiler error

9 Answers   Infosys,


given the piece of code int a[50]; int *pa; pa=a; to access the 6th element of the array which of the following is incorrect? a.*(a+5) b.a[5] c.pa[5] d.*(*pa + 5)

6 Answers   amu, TCS,


What are the characteristics of arrays in c?

0 Answers  


Write a program with dynamically allocation of variable.

0 Answers   Atos Origin,






What is the process to create increment and decrement stamen in c?

0 Answers  


What is the difference between GETS();AND SCANF();

4 Answers   TCS,


What is the size of enum in c?

0 Answers  


What is a C array and illustrate the how is it different from a list.

1 Answers   Amazon,


What is the equivalent code of the following statement in WHILE LOOP format?

0 Answers  


What is c programming structure?

0 Answers  


What is the best organizational structure?

0 Answers  


Categories