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

What is auto keyword in c?

0 Answers  


What is the purpose of the preprocessor directive error?

0 Answers  


What is the use of putchar function?

0 Answers  


How many types of errors are there in c language? Explain

0 Answers  


What is a dynamic array in c?

0 Answers  






What are structure members?

0 Answers  


the format specified for hexa decimal is a.%d b.%o c.%x d.%u

7 Answers   TCS,


what r the cpu registers r ther?

1 Answers  


WHICH TYPE OF JOBS WE GET BY WRITING GROUPS .WHEN THE EXAMS CONDUCTED IS THIS EXAMS ARE CONDUCTED EVERY YEAR OR NOT.PLS TELL ME THE ANSWER

0 Answers  


Do you know what are bitwise shift operators in c programming?

0 Answers  


Explain which function in c can be used to append a string to another string?

0 Answers  


By using C language input a date into it and if it is right?

0 Answers   Aricent,


Categories