Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


Closed Thread
  Search this Thread
Old 10-30-2004, 07:00 AM   #1
Registered: May 2004
Posts: 133

Rep: Reputation: 15

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
Old 10-30-2004, 07:07 AM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,571

Rep: Reputation: 180Reputation: 180
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.

Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Python inheritance and scope dakensta Programming 2 07-31-2005 06:16 AM
KDE- Out of Resolution Scope vijayind Fedora 2 02-23-2005 06:59 AM
Basic pointer scope Q jnusa Programming 8 11-22-2004 09:14 AM
structs & scope jnusa Programming 6 11-16-2004 05:33 AM
question about scope in c++ PTBmilo Programming 7 02-10-2003 04:59 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:04 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration