How the processor registers can be used in C ?
Answers were Sorted based on User's Feedback
Answer / om prakash mishra
in C,processor registers can be used by keyword
register...however,this keyword is a request not a command
to compiler to make use of processor register.snce the
processor register are very limited therefore a compiler
can skip the register keyword.
| Is This Answer Correct ? | 10 Yes | 1 No |
Answer / rahul singh
ACTUALLY PROCESSOR REGISTER ARE USED TO STORE THE DATA OR
RESULT DURING THE EXECUTION OF THE PROGRAM. PROCESSOR
REGISTER ARE CALLED MEMORY REGISTER.THE ACCESS TIME OF THIS
MEMORY IS VERY FAST.
| Is This Answer Correct ? | 9 Yes | 1 No |
Answer / sundeep
processor registers can be used to store variables which
are accessed frequently and if the registers are not used
by any other programs ,then those registers will be used to
allocate memory for those variabls.
| Is This Answer Correct ? | 5 Yes | 2 No |
Answer / anandam niranjan
cpu registers can be accessed faster than varibles in memory.
so we use processor registers to store frequently used variables
and this can be done by using the keyword "register" before
the declaration of variable as its storage class
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / chetan raikwar
CPU (Processor) registers store the values which can be accessed faster than other ordinary values.
* These can be used by the keyword register.
* Keyword should be place before declaring the type of variable.
example:- (simple storage) int i; char a; etc.
(registered storage) register int i; register char a;
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / wolverine
register data type variablename; // to use processor registers
| Is This Answer Correct ? | 0 Yes | 0 No |
write a c program to find largest of three numbers using simple if only for one time.
write a program whose output will be- 1 12 123 1234
What are the preprocessor categories?
why we are using semicolon at the end of printh statment
Can main () be called recursively?
when will be evaluated as true/ if(x==x==x) a) x=1; b) x=0; c) x=-1; d) none
print ur name without using any semicolon in c/c++....
21 Answers Bosch, TCS, Wipro,
Write a small C program to determine whether a machine's type is little-endian or big-endian.
1 What is a Data Structure?
illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question
1 1 1 1 2 1 1 3 3 1 1 4 6 4 1
what is the syallabus of computer science students in group- 1?