.... umm i really dont mind in my hacks
waht is this for anyway?
what exactly is the difference between void and char? does void hold both numbers AND letters? i know char holds letters and int holds numbers, but what exactly does void hold? im not quite that far in my book, im just being curious is all. thanks in advance.
.... umm i really dont mind in my hacks
waht is this for anyway?
Well I'm assuming your talking about methods when you talk about voids. A 'Void' is a method where you don't return anything. A char method would return a char value.
Now if you want to talk about them as variables, a char like you said holds character values (like letters, symbols, or numbers). An int can only hold numerical values. A bool can only have a true or false value. A double holds numerical values with decimals (like 1.2 or something). A void is simply something that isn't there, hence the name.
void is nothing, void == null.
void variables don't exist, they don't hold anything.
mrsmexy95 (08-12-2010)
this means a void have no return
a char have a return
BloodSkin (08-13-2010)
lol wow this is funny
ooo ok i think i understand now. so we use void when we just want to run commands but dont want any values to result from what we just did?
well...thats just about it then...
This will help me out a little bit
If I learned well, char variable can only hold 1 letter, but I didn't know that "void" thingy
Any donations would help
Originally Posted by Bombsaway707Originally Posted by BloodOriginally Posted by Alby-kunOriginally Posted by AliOriginally Posted by CodeDemon[21:13] CoderNever: HOLY SHIT ITS USER1!Yes it is me... Yup Yup
[IMG]https://i111.photobucke*****m/albums/n121/golmor/learntoprogram-1.png[/IMG]