AMMONG THE 4 STROAGE CLASSES IN C, WHICH ONE FASTEST?
Answers were Sorted based on User's Feedback
Answer / jaya prakash
Register.
Since the register variable is stored in CPU.
Easy to retrive and modify it.
| Is This Answer Correct ? | 11 Yes | 0 No |
Register.
Since the register variable is stored in CPU.
try once applying a programme:--
and check it it's execution time Using..
time ./a.out
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / dave
register storage class is faster.coz register accessing is
faster than main memory for the processor.for ide like
turbo,borland etc. there was a limitation in register usage.
but now for gcc and gnu ides there are millions of registers
to access.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / biju
Ofcourse register storage class is for quick access
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / rahul
register
becoz accessing value from register is more faster than
memory becoz it is in CPU.
if register is free otherwise it would become a local var.
| Is This Answer Correct ? | 2 Yes | 2 No |
what is the first address that gets stored in stack according to a C or C++ compiler???? or what will be the first address that gets stored when we write a C source code????????
How will you write a code for accessing the length of an array without assigning it to another variable?
State the difference between realloc and free.
PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE
The variables are int sum=10,SuM=20; these are same or different?
What is the advantage of a random access file?
Is linux written in c?
What is the difference function call by value & function call by reference?
write a program to print largest number of each row of a 2D array
Explain how do you print only part of a string?
a simple c program using 'for' loop to display the output 5 4 3 2 1
who is the father of C Language?
20 Answers CTS, UST,