MQL4 Reference Language Basics Data Types Void Type and NULL Constant
Void Type and NULL ConstantSyntactically the void type is a fundamental type along with types of char, uchar, bool, short, ushort, int, uint, color, long, ulong, datetime, float, double and string. This type is used either to indicate that the function does not return any value, or as a function parameter it denotes the absence of parameters. The predefined constant variable NULL is of the void type. It can be assigned to variables of any other fundamental types without conversion. The comparison of fundamental type variables with the NULL value is allowed. Example:
Also NULL can be compared to pointers to objects created with the new operator. See also |