int main(int argc, char** argv)
Int main(int argc, char** argv)
Other urls found in this thread:
kernel.org
godbolt.org
godbolt.org
twitter.com
Quality fucking thread OP
what should it be?
int main(integer argumentCount, character **argumentVector)
>camelCase in C
fuck off faggot
int main(size_t argc, char *argv[])
int main(int argc, char *argv[])
what's the advantage?
there's nothing you can do about it betamale
it doesn't look like shit. Plus asterisk always goes with variable name
auto main(const std::vector args) -> uint8_t
i-is that legal?
>basedCase fag calling anyone a beta
kek
no
>Plus asterisk always goes with variable name
Is Sakurako legal?
dumb bratposter
>When declaring pointer data or a function that returns a pointer type, the preferred use of * is adjacent to the data name or function name and not adjacent to the type name. Examples:
>char *linux_banner;
>unsigned long long memparse(char *ptr, char **retptr);
>char *match_strdup(substring_t *s);
Sakurano posters are the most intelligent creatures on earth.
Linux coding style also recommends using 8 spaces for indentation and that you should declare all your variables in the beginning of a scope C90-style. Not exactly something I would recommend for a personal project. The type is a char pointer pointer, that was one of the big mistakes C made.
But since you bring it up, Linux discourage char *argv[]
and encourage
char **argv
>Linux coding style also recommends using 8 spaces for indentation and that you should declare all your variables in the beginning of a scope C90-style
That's the only sane way of koding
main(int argc, char** argv)
to discourage sepples fags from compiling your code.
Why not
main(argc, argv)
int argc;
char** argv;
{
}
Because C is not a backwards compatible language
Implicit return type deduction is invalid C99 too, I don't see your point.
Valid in C90.
Invalid C99.
That is valid C90 though.
>he compiles stuff for C99
fucking nu-males. reeeeeeeeeeeeeeeeeeeeee
Linux coding style is still stuck in the 70's grandpa.
When I see char* string; I read the char* as a standalone type, namely a pointer to a character.
global variable
Is she doing GNU routine?
kys yourself
compiles on both ANSI and C11
While technically true, the number of times they've broken backwards compatibility is extremely small, and modern compilers will still accept the old code (possibly with a warning).
proof?
DELET
what case do people use in C? snek case? if so imma learn C straight away.
cute slut
just tried it
int main(int argc, char* argv[], char* envp[], char* apple[]);
that's not a proof, that's just another claim.
int main()
fite me
int main(int argc, char **argv)
int main(void)
at least be human.
who gives a shit you absolute fucking moron. the fact you even use C is indicative of your low IQ.
func main() {
//WOW SO HARD
}
it just works. it's why i have a career and you do not.