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 |
Suggesting that there can be 62 seconds in a minute?
Efficient data structure for store/search list of 1000 records a)array b)double linked list c)circular queue d)hash table
how to use showbits function?
wat is the difference between a definition and declaration? float y;---it looks like a declaration..but it s a definition.how?someone explain
write a program to arrange the contents of a 1D array in ascending order
write a program in C to swap two variables
#include<stdio.h> int f(int,int); int main() { printf("%d",f(20,1)); return 0; } int f(int n,int k) { if(n==0) return 0; else if(n%2)return f(n/2,2*k)+k; else return f(n/2,2*k)-k; } how this program is working and generating output as 9....?
How can I manipulate individual bits?
who is the editor of 'pokemon'?
What are the three constants used in c?
What is preprocessor with example?
Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?