| Welcome to Webforumz.com. |
|
Oct 3rd, 2007, 00:33
|
#1 (permalink)
|
|
Administrator
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
|
void
this applies to most langs
but i'll post here.
what does void mean? i see methods defined as void, javascript void and all that.
what does it mean though?
__________________
Languages: PHP, mySQL (queries), C#, (X)html, CSS, JS.
|
|
|
Oct 3rd, 2007, 08:18
|
#2 (permalink)
|
Join Date: Jun 2007
Location: Canterbury
Age: 19
Posts: 797
|
Re: void
think it means it either doesn't take a value or it doesn't return a value
|
|
|
Oct 3rd, 2007, 09:06
|
#3 (permalink)
|
Join Date: Apr 2007
Location: Willich, Germany
Age: 20
Posts: 612
|
Re: void
The void keyword means that the identifier it's being applied to has no type (int, bool...)
When you have a void function then it means the function returns no value (has no type).
A void pointer points to a value with no type.
__________________
Web design is the creation of digital environments that facilitate and encourage human activity; reflect or adapt to individual voices and content; and change gracefully over time while always retaining their identity.
~ www.c010depunkk.com ~ the hang-out of a web developer
|
|
|
Oct 3rd, 2007, 14:59
|
#4 (permalink)
|
|
Administrator
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
|
Re: void
thanks!
so would a void function be something like the following:
function void func() {
WriteLine("this");
}
?
__________________
Languages: PHP, mySQL (queries), C#, (X)html, CSS, JS.
|
|
|
Oct 3rd, 2007, 15:27
|
#5 (permalink)
|
Join Date: Apr 2007
Location: Willich, Germany
Age: 20
Posts: 612
|
Re: void
well, yeah. Depends on which language we're talking about....
__________________
Web design is the creation of digital environments that facilitate and encourage human activity; reflect or adapt to individual voices and content; and change gracefully over time while always retaining their identity.
~ www.c010depunkk.com ~ the hang-out of a web developer
|
|
|
Oct 3rd, 2007, 15:29
|
#6 (permalink)
|
|
Administrator
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
|
Re: void
Quote:
Originally Posted by c010depunkk
well, yeah. Depends on which language we're talking about....
|
Yeah just realised I don't know any java, so don't know syntax/keywords
__________________
Languages: PHP, mySQL (queries), C#, (X)html, CSS, JS.
|
|
|
| Thread Tools |
|
|
| Rate This Thread |
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|