i have to fill in a true or false in a question:
Functions can have local variables. Is this true or false??I think it 's false because functions always have local variables.
Printable View
i have to fill in a true or false in a question:
Functions can have local variables. Is this true or false??I think it 's false because functions always have local variables.
?? then it must be true then??
It's true....
You think it's false that functions can have local variables because they always have local variables? Huh?
Or expressed as a boolean function......
Its not not true that (if functions can have local variables) OR (functions always have local variables) then functions have local variables.
and what about this one:local variables exists during the hole program.True or false
another one: parameters can be reached from different functions
Oooooooohhhhhh nice try!
50 bucks and I'll do all the homework for you!
What's a hole program?
Is that like for drilling companies and stuff? I don't know much about that.
Perhaps one with a loop in it?
sorry,had to be whole.
> Perhaps one with a loop in it?
You sure? I heard the drilling industry's getting its hands deeper and deeper into the software industry lately. Something having to do with Gates's father being a miner...
Unreg: We're not going to do your homework.
>>Unreg: We're not going to do your homework.
[sarcasm]
I am. Its not like I have anything else to do
[/sarcasm]
>I think it 's false because functions always have local variables.
Code:void function (void)
{
/* I have no local variables, am I a function? */
}
> Functions can have local variables. Is this true or false??I think
> it 's false because functions always have local variables
Did you even READ this question?
"True or false: Functions can have local variables."
Um...
Likewise, you've never seen the classic 'hello world' program?Code:int main( void )
{
int OhMyGodIAmALocalVariable;
}
There are no local variables.Code:int main( void )
{
return printf( "Hello world!" );
}
Quzah.