AMMONG THE 4 STROAGE CLASSES IN C, WHICH ONE FASTEST?

Answers were Sorted based on User's Feedback



AMMONG THE 4 STROAGE CLASSES IN C, WHICH ONE FASTEST?..

Answer / guest

Register storage Class

Is This Answer Correct ?    24 Yes 0 No

AMMONG THE 4 STROAGE CLASSES IN C, WHICH ONE FASTEST?..

Answer / monika

register

Is This Answer Correct ?    13 Yes 0 No

AMMONG THE 4 STROAGE CLASSES IN C, WHICH ONE FASTEST?..

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

AMMONG THE 4 STROAGE CLASSES IN C, WHICH ONE FASTEST?..

Answer / sri

Register because it is used for fastest storage.

Is This Answer Correct ?    5 Yes 0 No

AMMONG THE 4 STROAGE CLASSES IN C, WHICH ONE FASTEST?..

Answer / amaresh chandra das

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

AMMONG THE 4 STROAGE CLASSES IN C, WHICH ONE FASTEST?..

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

AMMONG THE 4 STROAGE CLASSES IN C, WHICH ONE FASTEST?..

Answer / devvv

resister variables ofcource

Is This Answer Correct ?    3 Yes 1 No

AMMONG THE 4 STROAGE CLASSES IN C, WHICH ONE FASTEST?..

Answer / biju

Ofcourse register storage class is for quick access

Is This Answer Correct ?    3 Yes 1 No

AMMONG THE 4 STROAGE CLASSES IN C, WHICH ONE FASTEST?..

Answer / nvbtsundari

register

Is This Answer Correct ?    2 Yes 1 No

AMMONG THE 4 STROAGE CLASSES IN C, WHICH ONE FASTEST?..

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

Post New Answer

More C Interview Questions

What is sizeof c?

0 Answers  


Can we declare function inside main?

0 Answers  


What is the difference between a string and an array?

0 Answers  


write a program to rearrange the array such way that all even elements should come first and next come odd

0 Answers  


How is a structure member accessed?

0 Answers  






What is context in c?

0 Answers  


List the difference between a 'copy constructor' and a 'assignment operator' in C?

0 Answers   Accenture,


what wud be the output? main() { char *str[]={ "MANISH" "KUMAR" "CHOUDHARY" }; printf("\nstring1=%s",str[0]); printf("\nstring2=%s",str[1]); printf("\nstring3=%s",str[2]); a)string1=Manish string2=Kumar string3=Choudhary b)string1=Manish string2=Manish string3=Manish c)string1=Manish Kumar Choudhary string2=(null) string3=(null) d)Compiler error

9 Answers   Infosys,


in one file global variable int i; is declared as static. In another file it is extern int i=100; Is this valid ?

2 Answers   NetApp,


What is substring in c?

0 Answers  


what is the difference between char * const and const char *?

2 Answers   TCS,


What is action and transformation in spark?

0 Answers  


Categories