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

struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer

752


What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file

651


How many main () function we can have in a project?

602


What is scope rule in c?

595


What is mean by data types in c?

540






What is an array? What the different types of arrays in c?

646


What are called c variables?

567


How can I insert or delete a line (or record) in the middle of a file?

563


Explain is it better to bitshift a value than to multiply by 2?

701


What are pointers? What are stacks and queues?

569


#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }

704


What is the difference between malloc() and calloc() function in c language?

587


What language is c written?

566


What is scope and lifetime of a variable in c?

564


Do array subscripts always start with zero?

766