The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Global variable declaration in shell scripting susilgandhi Shell Programming and Scripting 1 02-05-2008 09:59 PM
Array Declaration and For Loop 33junaid Shell Programming and Scripting 4 09-15-2007 01:16 PM
awk field declaration?? tonet Shell Programming and Scripting 1 09-12-2007 05:23 AM
double variable declaration kotasateesh Shell Programming and Scripting 3 08-31-2007 02:29 AM
Help with variable declaration dsravan Shell Programming and Scripting 1 12-08-2006 12:15 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 07-07-2004
Registered User
 

Join Date: May 2004
Posts: 66
Question Variable declaration

what does this mean when a variable is declared as

Code:
register int i;
Thanks.
Reply With Quote
Forum Sponsor
  #2  
Old 07-07-2004
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,616
It was a hint to older compilers that i might profit from being assigned to a register. Modern compilers will figure out what to do.

Also you can't take the address of a variable declared to be register.
Reply With Quote
  #3  
Old 07-07-2004
Registered User
 

Join Date: May 2004
Posts: 66
Thanks for the info.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:27 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0