[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

How is "int main" not a specifier type??

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 18
Thread images: 1

How is "int main" not a specifier type??
>>
>>58221769
int main() specifies the type the function returns
anything inside the parens is a parameter that needs its own type declaration
>>
>>58221769
int
main(int argc, char *argv[])
{
//code
}
>>
>>58221769
>How is "int main" not a specifier type??
Are you blind you fucking mongo?

x is declared but not specified. It needs to have its type specified. The arrow is pointing at symbol x, not main.
>>
>>58224467
>
int
main

Put a bullet in your brain.
>>
>>58224564
this. Why are some people so retarded? There is only one correct syntax.

int main(int argc, char *argv[])
{
//code
return 0;
}
>>
>>58224681
>>58224564
>he doesn't follow kernel syntax
Prancing lala fruits, the both of you.
>>
void main(string[] args)
{
return;
}
>>
>>58224564
>>58224681
I have no problem with that style.
I don't use it myself, but I understand why some people might want to use it.
>>
It's referring to x dummy

it's saying that x is not enough info to go on. C++ requires, in order to provide you with codie goodness, that you abide its syntax laws.
>>
>>58224741
Which kernel are you talking about? Because if you tried this shit in linux, you would probably be personally insulted by Torvalds.
>>
>>58224741
>kernel syntax
laughinggirls.jpg
>>
>>58224855
>>58224898
Disregard that, I suck cocks. That's what we used for a kernel we developed in class, and the professor was a GNU+Lanox fanatic, so I figured that's the style they used. On further inspection, GNU does follow it.
>>
>>58224681

> Why are some people so retarded?

We like to grep
'^func('[\code] in order to find function implementation.
>>
>>58224741
The kernel coding style doesn't do that.
>>
>>58224968
>can't even use tags properly
let me guess, you also expect the debugger to spoonfeed you when you make a mistake.
>>
>>58224681
>retarded
>int main
>return 0
lad...
>>
>>58225179
It's called the exit code of success for a reason anon.
Thread posts: 18
Thread images: 1


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.