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 |
write a program for even numbers?
How can I read a binary data file properly?
What are the types of data types and explain?
In c language can we compile a program without main() function?
write a program to check whether a number is Peterson or not.
Is javascript based on c?
What language is windows 1.0 written?
4)What would be the output? main() { int num=425; pf("%d",pf("%d",num)); } a)Comp error b)4425 c)4253 d)3435 e)none
What are directives in c?
Can we use any name in place of argv and argc as command line arguments?
Stimulate calculator using Switch-case-default statement for two numbers
What is the difference between printf and scanf in c?