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 |
application attempts to perform an operation?
What is a program flowchart?
Explain what is the benefit of using enum to declare a constant?
#include<stdio.h> main() { char s1[]="Ramco"; char s2[]="Systems"; s1=s2; printf("%s",s1); } Find the output
There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?
5. What kind of sorting is this: SORT (k,n) 1.[Loop on I Index] repeat thru step2 for i=1,2,........n-1 2.[For each pass,get small value] min=i; repeat for j=i+1 to N do { if K[j]<k[min] min=j; } temp=K[i];K[i]=K[min];K[min]=temp; 3.[Sorted Values will be returned] A)Bubble Sort B)Quick Sort C)Selection Sort D)Merge Sort
what is the difference between #include<> and #include”…”?
Do you know the difference between malloc() and calloc() function?
Difference between constant pointer and pointer to a constant.
Write a client and server program in C language using UDP, where client program interact with the Server as given below: i) The client begins by sending a request to send a string of 8 characters or series of 7 numbers, the server sends back a characters or numbers as per the request of the client. ii) In case of series of 7 numbers: The client sends a multiplication of numbers, to the server. iii) In case of a string of 8 characters: The client sends a reverse order of string to the server.. iv) Server will send an acknowledgment to the client after receiving the correct answer
Tell me what is the purpose of 'register' keyword in c language?
if array a conatins 'n' elements and array b conatins 'n-1' elements.array b has all element which are present in array a but one element is missing in array b. find that element.
18 Answers Parexel, Ram Infotech, Zycus Infotech,