what is d pitfalls of registers variables

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is external variable in c?

613


What is the symbol indicated the c-preprocessor?

696


What is the difference between procedural and declarative language?

651


Is int a keyword in c?

557


Why c is called top down?

626






how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions

2723


What are valid signatures for the Main function?

701


what do you mean by inline function in C?

618


hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell

1673


Where are c variables stored in memory?

599


#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }

631


What are disadvantages of C language.

649


Is null always defined as 0(zero)?

615


main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }

910


Explain the use of bit fieild.

714