Void Main Error In Dev C++
Dec 03, 2016 please friends like,share,and comment this video. If you have any query then comment me please. Please don't forget for subscribe. Because in C, the main function must have a return type of int. Your version with a return type of void is incorrect and is being correctly rejected by your compiler. Just change the declaration from. May 30, 2017 Difference between int main and void main and main Like any other function, main is also a function but with a special characteristic that the program execution always starts from the ‘main’. ‘int’ and ‘void’ are its return type.
When used as a function return type, the void keyword specifies that the function does not return a value. When used for a function's parameter list, void Fuzzplus 3 vst download. specifies that the function takes no parameters. Bartender price mac. When used in the declaration of a pointer, void specifies that the pointer is 'universal.'
If a pointer's type is void*, the pointer can point to any variable that is not declared with the const or volatile keyword. A void* pointer cannot be dereferenced unless it is cast to another type. A void* pointer can be converted into any other type of data pointer.
Void Main Error In Dev C File
A void pointer can point to a function, but not to a class member in C++.
You cannot declare a variable of type void.
Dev C++ Void Main Error
Example
See also
Void Main Error In Dev C 4
Keywords
Built-in types