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 |
Define and explain about ! Operator?
What will be the output of the following program #include<stdio.h> void main() { int i=20; i-=i+++++i++; printf("%d",i); }
What are the different file extensions involved when programming in C?
I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.
When should the const modifier be used?
cavium networks written test pattern ..
What are examples of structures?
Where local variables are stored in c?
How can I prevent other programmers from violating encapsulation by seeing the private parts of my class?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)
2 Answers HCL, IBM, Satyam, Vimal, Vimukti Technologies,
How will you divide two numbers in a MACRO?
write a program to copy the string using switch case?