difference between this
#4

static has two uses.

If it is used on a global variable, it limits the scope of the variable to the current file.

If used on a local variable, it basically makes the local variable a global variable whose scope is what the scope of the local variable would be (i.e. it retains the value).
Reply


Messages In This Thread
difference between this - by M3rcurio - 23.03.2014, 00:47
Re: difference between this - by Equuuuin0X - 23.03.2014, 01:34
Re: difference between this - by blackeagle1122 - 23.03.2014, 01:50
Re: difference between this - by MP2 - 23.03.2014, 02:08

Forum Jump:


Users browsing this thread: 1 Guest(s)