what is d pitfalls of registers variables
Answers were Sorted based on User's Feedback
Answer / mohammed
Important pitfalls
Value of the variable stored in register of cpu not for memory
| Is This Answer Correct ? | 3 Yes | 2 No |
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 |
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 |
How can this be legal c?
What is a macro, and explain how do you use it?
Is there a way to compare two structure variables?
How to write c functions that modify head pointer of a linked list?
What is the use of ?: Operator?
Does c have circular shift operators?
What is the method to save data in stack data structure type?
in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above
wap to print "hello world" without using the main function.
Can one function call another?
What are the differences between Structures and Arrays?
What header files do I need in order to define the standard library functions I use?