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

>C is better than C++

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: 20
Thread images: 3

File: tips.jpg (60KB, 540x720px) Image search: [Google]
tips.jpg
60KB, 540x720px
>C is better than C++
>>
File: 1501437092094.jpg (24KB, 387x461px) Image search: [Google]
1501437092094.jpg
24KB, 387x461px
>[Language] is better than Haskell
>>
>>61831391
Language wars are lowest form of technological discussion.
>>
>>61831782
perfect for me since i'm the lowest for of human life
>>
>>61831391
C++ is objectively better, just look at the name
>>
>>61831782
Agreed. Except when someone is rushing to acknowledge the supremacy of my beloved language waifu Haskell.
>>
>>61831391
now add some life bars into it
>>61831856
/thread
>>
File: 1474730077602.png (323KB, 611x591px) Image search: [Google]
1474730077602.png
323KB, 611x591px
>>61831412
There's always a meme language mentioned in these threads, you guys should make a /mlg/ so you can talk about your languages there and the rest of the board can talk about languages people actually use
>>
>>61833947
reee i did this to my phone
>>
>>61831391
the art in the new fate series looks too real
>>
>>61831391
C++ > C > C++
>>
>>61833970
Reeeeee-tard
>>
C#
>>
#include <stdio.h>

int
main(void)
{
char c = 0, cpp = c++;
if (cpp > c)
puts("C++ > C");
else if (cpp < c)
puts("C++ < C");
else
puts("C++ = C");
return 0;
}

>C++ < C
>>
>>61834615
>>>/reddit/
>>
>>61834571
This, sort of
You have more options in c++, but a shitton more pitfalls
Like going pure oop
>>
>>61831391
kys yourself
>>
>>61834766
It's worse when you're working in a team.
>>
I just stumbled on to this gem at work today:
int16_t buffer, *p_buffer = &buffer;

p_buffer were used once in a function that sets the value for buffer.
Does anyone know what could possible justify this over just using
&buffer
when needed?
>>
>>61834868
There are some use cases. Depends on what you want to do.
If there are some other int16_t variables you could use p_buffer to point to them if that's what you want.
Or maybe you want to do something specifically with a variable that holds an int_16t*. Maybe there's a function that takes an int16_t** to modify that pointer in some way.

If this variable is only used to pass &buffer to a function, then yeah, there's no justification. Depending on the compiler it might even lead to an unnecessary store and load into a variable. Maybe the author was a noob and didn't understand pointers very well.
Thread posts: 20
Thread images: 3


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