Why is /g/ against using the deprecated features of C if C is a deprecated language anyway?#include <stdio.h>
int main( void )
{
puts("This triggers the C fag.");
}
>>57259798
>puts
>not glorious cout
I bet you only know how to fizzbuzz in 35 obscure programming languages
>>57259798
it doesn't trigger me, it just makes you look like you don't know what you're doing :^)
>>57259812
>cout
>C
>>57259812
cout isnt even thread safe, not to mention the ugly-ass syntax
>>57259812const char *str = "what a trivial thing to get angry about";
fwrite(str, strlen(str) + 1, 1, stdout);
With Ada.Text_IO;
With Ada.Integer_Text_IO;
Use Ada.Text_IO;
>>57259825
>>57259836
>>57259897
Here's your (You) for taking the bait :^)
>>57259798
what's deprecated here?
>>57259798
Why do people put ( void ) in their function arguments?
>>57261785
Main doesn't have to return anything because it's the program, so you return void so nothing is expected to be returned.
>>57261804
I mean in the argument list, not the return value
>>57261785
f() means the number and type of parameters are unknown,f(void)means there are no parameters.
Where this matters is compiler error checking:void a() { }
void b(void) { }
int main(void)
{
a(5); // produces no error since there is no prototype
b(5); // does not match prototype so an error is produced
}
This does not apply to C++,void f()there means the same as void f(void).
>>57261847
Oh cool, did not know that.
>>57261853
Get on my level.
I prefer the iPhone over Android phones.
Linux is terrible for most people and seems to be filled with people who spend more time ricing their desktop. And like Windows, it's doomed to be a product for corporations like Dell and Valve to shit all over.
Windows is really only good for games and a few other niches. Linux is only good for servers and watching fansubbed anime.
Tablets are awesome pieces of techology.
Macs are okay computers would love to get an Air one day.
VR and 4K are retarded gimmicks.
i don't use the very latest bleeding edge equipment and/or software