Mihail
y = (x++) ++;
I'm guessing that'll increment x twice
olli
No, using a postincrement yields an rvalue that cannot be incremented
BinaryByter
Oh! okay
olli
Or how should 5++ be evaluated?
Mihail
well. 6
Also this imo
Shivam
Hey
Mihail
Shivam
Sup
Shivam
I'm a beginner
olli
well. 6
So the next time you write 5 it needs to be 6 - probably not
BinaryByter
what?
Mihail
Actually I agree with olli, because it's post-increment
Shivam
I am learning c and I'm able to create programs as a newbie
BinaryByter
I see
Mihail
So it'll do it first then increment the value
Shivam
So now should i learn c++?
BinaryByter
don't learn C
olli
So (++x)++?
++ ++x is perfectly fine
Shivam
Why
Mihail
So now should i learn c++?
Yeah it's better than C in basically every way
Shivam
Check tiobe site, c has ranking of 2
Shivam
After java
BinaryByter
I like websites that don't cite sources
Mihail
After java
Nothing can be after Java
Shivam
-_-
Shivam
Wait a min
Mihail
Except PHP maybe
Shivam
Check this
Shivam
https://www.tiobe.com/tiobe-index/
olli
Check tiobe site, c has ranking of 2
Go ahead and learn C if you want to, you get a great understanding of how things work. It is still widely used
BinaryByter
olli
That's why I would use pre increment in for loops, it does not hurt you but might elide an unnecessary copy
Anonymous
Check tiobe site, c has ranking of 2
Is c the first language you're learning?
Shivam
No
Shivam
I have some knowledge of java
Mihail
I like how they mention what they don't compare, but then don't actually mention what they compare
Mihail
I don't think even they know
Shivam
^
BinaryByter
but its too vague to REALLY be relevant
Mihail
they DO mention that
They mention the sources
Shivam
Yup
Anonymous
I have some knowledge of java
Make java your primary language and learn c by the side
Mihail
But you can't really find out what exactly they're comparing by just knowing the sources
BinaryByter
BinaryByter
but you can in C++
Shivam
Make java your primary language and learn c by the side
Yeah but learning java gonna take too much time and I've decided to learn ui design
Anonymous
a friend of mine even made a whole http protocol only using C
Anonymous
Why?
C has a steep learning curve and is boring af
Anonymous
anything you can do in C++ you can fundamentally do in C it just may look like ugly code
olli
Everything you can do using C++, there is a way in C to have the same result
Shivam
Yes^
olli
I'd put that the other way around tbh
Which result can you achieve with C++ that C cannot?
BinaryByter
you can
yea, you can
BinaryByter
but you can'T use webcpp
Anonymous
C is interesting :/
Wew you're the first guy I've met who thinks so 😅
BinaryByter
its one of the best libraries i've seen so far
Anonymous
BinaryByter
you do not need to
but it makes stuff SO easy
Anonymous
you only need socket to do web dev
Shivam
Mihail
Which result can you achieve with C++ that C cannot?
Which can you achieve with C that you can't with C++?
Anonymous
but it makes stuff SO easy
then use a higher level language like haskell
Anonymous
that makes it even easier
olli
but you can'T use webcpp
There's barely a reason to use it in production and the development process is hard. Using a WebDev workflow you do not need to recompile the whole thing to see a change
Shivam
What's haskell?
Mihail