Raised This Month: $ Target: $400
 0% 

static variable - question


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 07-04-2012 , 12:15   Re: static variable - question
Reply With Quote #2

It will be the same as you left it in the previous call...so the first element will have 'H' in 0 pos.

If you're familiar with global variables, think of static being the same in functionality except it is limited to the scope of the function where it was declared.
__________________

Last edited by Bugsy; 07-04-2012 at 12:18.
Bugsy is offline
 



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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:12.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode