LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   scope (https://www.linuxquestions.org/questions/programming-9/scope-249058/)

suchi_s 10-30-2004 07:00 AM

scope
 
Which one of the following gives a hint to the compiler that might better optimize a frequently used local variable?
Choice 1
Declaring it as static
Choice 2
Declaring it as volatile
Choice 3
Declaring it as auto
Choice 4
Declaring it as extern
Choice 5
Declaring it as register

Mara 10-30-2004 07:07 AM

It looks like a homework...Will answer it, through. Option 5. But your job is not to find out why and why ther others are not.


All times are GMT -5. The time now is 02:54 AM.