Which functions are allowed to have no (not even void) return value? Is main one of them? Constructor. No return type. No return statement. Main doesn't need a return value
Printable View
Which functions are allowed to have no (not even void) return value? Is main one of them? Constructor. No return type. No return statement. Main doesn't need a return value
whho the fuck are you
we dont talk about dragons
VOID MAIN VOID HELLO WORLD
PRINTF \N
int main( int argc, char**argv ) {
int x = 5;
return 0;
}
jeez that vid made me laugh
#INCLUDE <CARE.H>
#define VAL_1X 42
#define VAL_2X VAL_1X, VAL_1X
#define VAL_4X VAL_2X, VAL_2X
#define VAL_8X VAL_4X, VAL_4X
#define VAL_16X VAL_8X, VAL_8X
#define VAL_32X VAL_16X, VAL_16X
#define VAL_64X VAL_32X, VAL_32X
int myArray[53] = { VAL_32X, VAL_16X, VAL_4X, VAL_1X };
math is more autistic than general dolloly
#hashtags lol
If u want 2 fuck with me Whoever you are.... back the fuck away
uh any function
Code:#include <stdio.h>
foo()
{
printf("foo");
}
main()
{
foo();
printf("bar\n");
}
and there are no constructors in CCode:jon@wroth:~/sandbox$ gcc -Wall -ansi -pedantic idiot.c
idiot.c:4: warning: return type defaults to 'int'
idiot.c: In function 'foo':
idiot.c:6: warning: control reaches end of non-void function
idiot.c: At top level:
idiot.c:9: warning: return type defaults to 'int'
idiot.c: In function 'main':
idiot.c:12: warning: control reaches end of non-void function
jon@wroth:~/sandbox$ ./a.out
foobar
and they do have a return value even though you are allowed to skip its declaration, as you can plainly see from the warnings, and that default return value is int
I'll foo your bar