0

What is main fungtion of void

void makan(void)

23rd Apr 2017, 8:12 AM
Francisco Bot
Francisco Bot - avatar
7 Réponses
+ 8
As of the latest standard, main function must always be of return type int. int main() { // codes return 0; }
23rd Apr 2017, 8:22 AM
Hatsy Rei
Hatsy Rei - avatar
+ 3
void = nothing.. means the function returns no value
23rd Apr 2017, 9:47 AM
jay
jay - avatar
+ 3
+ create universal pointers void *ptr;
23rd Apr 2017, 10:45 AM
jay
jay - avatar
+ 1
two meanings two uses:- 1.void as return type miins that function not return any value void show() like this 2.use void as parameter of function void show(void) here void use as parameter to function mins this function cannot take any argument or parameter
23rd Apr 2017, 10:35 AM
Mayur Chaudhari
Mayur Chaudhari - avatar
+ 1
Void is used in the declaration of a function that will not return a value like, void int fmax;
23rd Apr 2017, 10:56 AM
LexDaGreat
+ 1
void returns nothing
3rd May 2017, 10:56 AM
CHISTI JALAJAKSHI
CHISTI JALAJAKSHI - avatar
0
yes and if there is more main function and there function with type void what is function of void
23rd Apr 2017, 9:27 AM
Francisco Bot
Francisco Bot - avatar