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 meant by int fun const(int a, int b) { .... ... }
What is the general form of #line preprocessor?
How can I implement a delay, or time a users response, with sub-second resolution?
What do you understand by normalization of pointers?
what is constant pointer?
write a program in c language for the multiplication of two matrices using pointers?
why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above
How will you allocate memory to a double pointer ?
What is volatile in c language?
Find Index of least significant bit set in an Integer. ex. int value is say 10001000 results should be 4.
Mention four important string handling functions in c languages .
what is the difference between global variable & static variable declared out side all the function in the file.