Ersin
#gcc9
Walter
#findprojects
S.
j is either 0 or 1
swarnim
Why j value is not increasing??
Read my answer to it. Above.
swarnim
this is a cpp file, ffs use cout
Cout is slower than printf and really weird if you ask me.
S.
Read my answer to it. Above.
I think he'd better read a book before trying too much.
swarnim
I think he'd better read a book before trying too much.
Well it's not exactly given in books.
Anmol
Why j value is not increasing??
Coz its assigning by Boolean value true ( true = 1)
swarnim
Many books skim over it all.
swarnim
No.
Yes
S.
Many books skim over it all.
You mean this knowledge? https://en.cppreference.com/w/c/language/operator_precedence
Anmol
this is a cpp file, ffs use cout
Cpp supports c syntax but c doesn't support cpp syntax
Anonymous
Yes
There are good reasons for using cout in C++. If you use C++, don't write ugly C code.
swarnim
Read about it on the internet. Explaining is really a pain. Basically the problem is having to use a ostream reference and all the bells and whistles it comes attached with.
swarnim
There are good reasons for using cout in C++. If you use C++, don't write ugly C code.
There are, cout is much safer and high level but if you are using C++ then you should aim for performance more than high-level safety.
S.
Speed shouldn't be a key problem to discuss, guys. If so concerned, why not sys_write
swarnim
You mean this knowledge? https://en.cppreference.com/w/c/language/operator_precedence
Well the operator precedence is not well explained in many cases.
swarnim
This is idiotic micro-optimisation
Please I don't wanna fight but everyone is free to whatever they want so just use what ever you like.
Anonymous
Some C++ coders really getting me...
Mat
Please I don't wanna fight but everyone is free to whatever they want so just use what ever you like.
If you're using cpp, you should use cpp features if you don't have particular reasons
swarnim
I find the current C++ to be going in the wrong direction.
Anmol
Speed shouldn't be a key problem to discuss, guys. If so concerned, why not sys_write
I used printf to explain it better be couse Question contains printf
swarnim
Adding absurd abstractions and making it high level.
swarnim
It will never be a Python alternative so they should add better standard lib support. And fix the rough edges.
Mat
It's like saying If i use a[3] I'll be faster than a.at(3) Ok, but at() is safer and you'll not optimize your program so much
Saurabh
Anyone knows here about functionality of ffmpeg
swarnim
It's MY preference
swarnim
You all are free for your preference
Anonymous
Mat
Everyone is free to use what they like about c/cpp but don't suggest your preferences
Anonymous
Everyone is free to use what they want - but WE need to fix this security mess
Anonymous
So this is bullshit
swarnim
I said it was faster and that might be the reason he might be using it.
swarnim
Everyone is free to use what they want - but WE need to fix this security mess
I won't use unsafe code in professional environment where people don't care about performance as much.
Anonymous
I won't use unsafe code in professional environment where people don't care about performance as much.
So there is a environment where you don't have to care about secure code?
Anonymous
Or more important, correct code
swarnim
So there is a environment where you don't have to care about secure code?
Well I prefer to make it secure myself than use code that is slower
swarnim
And get that last bit of juice out.
S.
swarnim
If I can't atleast I learned something
Anonymous
oof
VJ
Dima
pls
VJ
Y fst statement not printing??
VJ
pls
Help me Preparing for company
Dima
this?
Dima
you must be lying
Dima
because post and pre increment work different
VJ
because post and pre increment work different
Can u explain y does a value is not changing in fst condition
Dima
because decrement happens after condition expression
Dima
these are fundamentals to know
Roxifλsz 🇱🇹
/warn photo of screen
Dima
oh wait I could give 10 warns to all the people above lol
Roxifλsz 🇱🇹
/warn photo of screen
Seriously, it's in the rules, we don't want eye cancer
VJ
because decrement happens after condition expression
If that happens after condition Then 10==10 that condition must be satisfied???
Anonymous
If that happens after condition Then 10==10 that condition must be satisfied???
I'm sure we all could help you if you would give us the code :)
VJ
Here it is
Anonymous
Here it is
I said the code, not a weird photo of a screen
S.
Here it is
Learn how to paste code.
VJ
Okay wait
VJ
https://pastebin.com/0Zkjufiw
Anonymous
Yeah, thats perfect
VJ
explain me abt fst condition y its not printing
S.
explain me abt fst condition y its not printing
Well. Actually, if in C, it's undefined behavior. ( Not sure in C++
Anonymous
explain me abt fst condition y its not printing
Print out the values of a and you'll understand. Pre- and postdecrement do different things in a expression.