[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]

return 0; return(0); Which one, /g/? Is return a function?

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: 4

File: 1451474655185.jpg (42KB, 500x500px) Image search: [Google]
1451474655185.jpg
42KB, 500x500px
return 0;
return(0);


Which one, /g/? Is return a function?
>>
>>52497467
Don't use brackets.
If its clear without them and they aren't necessary, then why use them?
>>
File: bruh goofy.jpg (11KB, 221x319px) Image search: [Google]
bruh goofy.jpg
11KB, 221x319px
>>52497467
>return
>>
>>52497467
The first. Return isn't a function.
>>
>>52498245
If it isn't a function why does it accept function syntax?
>>
>>52498332
It doesn't accept function syntax.
x and (x) are the same things. You can just add parenthesis around x. It's like 1 + x and 1 + (x). Do you say that 1 + accept function syntax?
>>
File: 1450343047292.jpg (71KB, 640x480px) Image search: [Google]
1450343047292.jpg
71KB, 640x480px
>>52497851
>using exit
>>
File: me nd my goth gf.png (316KB, 522x960px) Image search: [Google]
me nd my goth gf.png
316KB, 522x960px
>>52497467
Well I mean it should really be more like:
0
>>
>>52497467
Return is a statement.

>>52498332
Parens aren't used exclusively for function calls.
>>
>>52497851

char *string[16] = "";
char *p = string;
bool notexited = true;
do {
*p += 32;
*p = 64;
} while (notexited == true)


That'll do it
>>
>>52498612
>== true
>>
>>52498708
> greater than or equal to and the same type as true
> c

This saddens the kernighan
This depresses the ritchie
>>
>>52498765
>being unable to parse maymay arrows
>>
>>52498796
> being unable to use non-printing spaces

rustled, newfag?
>>
>>52498802
>space
>non-printing
wat

Anyway, why are you checking if a boolean is true?
>>
>>52497467
I always neglect to return 0, integers are zero upon declaration.
If the function does not return anything except zero, why return at all?
>>
>>52497467
First one returns integer 0.
Second one evaluates the expression in parentheses and returns a Boolean value 1 if it evaluates to a nonzero value.
If it evaluates to zero, it just returns zero.
>>
>>52497467
Cute pic
Thread posts: 18
Thread images: 4


[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.