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 |
There seem to be a few missing operators ..
what wud be the output? main() { char *str[]={ "MANISH" "KUMAR" "CHOUDHARY" }; printf("\nstring1=%s",str[0]); printf("\nstring2=%s",str[1]); printf("\nstring3=%s",str[2]); a)string1=Manish string2=Kumar string3=Choudhary b)string1=Manish string2=Manish string3=Manish c)string1=Manish Kumar Choudhary string2=(null) string3=(null) d)Compiler error
given the piece of code int a[50]; int *pa; pa=a; to access the 6th element of the array which of the following is incorrect? a.*(a+5) b.a[5] c.pa[5] d.*(*pa + 5)
What are the characteristics of arrays in c?
Write a program with dynamically allocation of variable.
What is the process to create increment and decrement stamen in c?
What is the difference between GETS();AND SCANF();
What is the size of enum in c?
What is a C array and illustrate the how is it different from a list.
What is the equivalent code of the following statement in WHILE LOOP format?
What is c programming structure?
What is the best organizational structure?