[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: 1679539236646441.png (260 KB, 699x485)
260 KB
260 KB PNG
#include <stdio.h>

int main(void) {
printf("hello world\n");
return 0;
}
>>
>>107273626
haha stoopid
>>
>return 0;
What if printf fails?
>>
File: Gi-lFkEXoAAK_Eu.jpg (96 KB, 968x1408)
96 KB
96 KB JPG
>>107273661
>What if printf fails?
>>
>>107273661
how
>>
>>107273681
>If an argument operand cannot be completely converted into an internal value appropriate to the corresponding conversion specification, a diagnostic message shall be written to standard error and the utility shall not exit with a zero exit status, but shall continue processing any remaining operands and shall write the value accumulated at the time the error was detected to standard output.
>>
>>107273681
I think you can force the output to /dev/null.
>>
File: 1679961011475843.png (346 KB, 599x504)
346 KB
346 KB PNG
>>107273626
> { on same line as function header
>>
File: qw08eqw09e.png (12 KB, 420x420)
12 KB
12 KB PNG
const int MY_CONST = 10;
int * my_var = &MY_CONST;
*my_var = 0;
>>
>>107273938
>The other penguins will not allow it.
>>
>>107273626
Forgot the
 tags. But yeah, this how it begins.

>>107273661
I have never seen this happen.
>>
>>107273626
#include <stdio.h>
void main(){
puts("nigger");
}
>>107273715
thats not failing thats piping stdout to /dev/null, fuck (you) retarded nigger
>>
>>107274609
Youre mean
>>
>>107273626
>return 0;
You don't have to do that
>ISO/IEC 9899 5.1.2.2.3:
>reaching the } that terminates the
main function returns a value of 0.
>>
>>107274747
thank (you), i know
and also thank (you) for the (you), it means very little to me but enough to warrant a thank (you)



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

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.