LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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,696

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



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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:34 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration