LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

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

Rep: Reputation: 15
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
 
Old 10-30-2004, 07:07 AM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,536

Rep: Reputation: 148Reputation: 148
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


All times are GMT -5. The time now is 03:27 PM.

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