English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

5 answers

it means it doesnt require any parameters

2007-03-22 04:41:04 · answer #1 · answered by abd 5 · 0 0

Empty parentheses is short for (Void). Void means this list is empty.
When you call any function, all parameters needed are pushed on to a stack along with return address.
The calling program (some system routine that prepares the jump instruction) have to pop all the parameters before the function starts executing. The void / empty parenthesis makes sure the stack is used properly, which will result in incorrect return address.

2007-03-22 11:49:06 · answer #2 · answered by askMahesh 3 · 0 0

In the C / C++ syntax languages ( C / C++ / C# / Java ) , a function is always declared with parantheses even if it has no parameters. Parantheses are required according to the syntax.

This is in contrast to the Algol syntax languages ( Algol / Pascal / Modula-2 / Object pascal / Delphi ) where parantheses arent necessary if a function takes no arguments.

Vivek

2007-03-22 11:36:28 · answer #3 · answered by rep_movsd 2 · 0 1

The empty parentheses () is passing a null arguement to the function.

2007-03-22 11:25:12 · answer #4 · answered by Rabbit 5 · 0 1

In a function a sub a () following is usally used to signify a byval. An empty () returns a null argument

Like..

Function ShowAll(ByVal Name as Object)
End Function

So in a Button.Click event if you say
ShowAll(Me)
The Name in ShowAll() will return all the objects in Me(*current form)

2007-03-22 11:27:40 · answer #5 · answered by Anonymous · 0 1

fedest.com, questions and answers