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 |
char ch=10;printf("%d",ch);what is the output
what is the use of pointers
what is a constant pointer in C
what is the use of getch() function in C program.. difference b/w getch() and getche()??
29 Answers HCL, IBM, Infosys, TCS, Wipro,
how to introdu5ce my self in serco
i want the code for printing the output as follows 4 4 3 3 2 2 1 1 0 1 1 2 2 3 3 4 4
What is file in c preprocessor?
main() { int *ptr=(int*)malloc(sizeof(int)); *ptr=4; printf("%d",(*ptr)+++*ptr++); }
5 Answers Vector, Vector Solutions,
What is difference between union and structure in c?
how can we use static and extern?and where can we use this?
How can I change their mode to binary?
What is break statement?