[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
return 0; return(0); Which one, /g/? Is return a function?
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 18
Thread images: 4
File: 1451474655185.jpg (42 KB, 500x500) Image search: [Google]
1451474655185.jpg
42 KB, 500x500
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 (11 KB, 221x319) Image search: [Google]
bruh goofy.jpg
11 KB, 221x319
>>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 (71 KB, 640x480) Image search: [Google]
1450343047292.jpg
71 KB, 640x480
>>52497851
>using exit
>>
File: me nd my goth gf.png (316 KB, 522x960) Image search: [Google]
me nd my goth gf.png
316 KB, 522x960
>>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 replies: 18
Thread images: 4

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

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.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.