Indolent
{ data++;} cout << data1 in main and the value of data1 remains zero why?
Dima
you are not increasing the value of data, only moving a pointer
Indolent
Where does the pointer goes lol
Artöm
Indolent
Wish I had a proper laptop so I could copy paste code
Nils
gjgjtuy
hey guys i been learning git these days, but i got a little question here: what's the difference between git rm —cached and git restore —staged? are they both used for remove file from stage area and keep the same file in working directory? i am confused now and i need your help🙏
Anonymous
Hi
CappedCrusader
Q. Order in which function is called in c/c++
a = F1() * F2() +F3() ;
CappedCrusader
数学の恋人
MᏫᎻᎯᎷᎷᎬᎠ
:D
Anunay
Thanks!
MᏫᎻᎯᎷᎷᎬᎠ
Welcome
Cengizhan
Order of function evaluation is not defined in C.
CappedCrusader
CappedCrusader
What about c++
CappedCrusader
Anybody ???
Alex
Cengizhan
Alex
for C is it also right
Alex
because of operator priority
Alex
operator* has more priority than operator+
CappedCrusader
I think no.
Why you are saying this ?? What is the reason
__A_1010
Cengizhan
Function evaulation order can be changed by comma operator or maybe paranthesis.
__A_1010
. Anybody ???
F1()*F2() will be evaluated first then +f3()
Cengizhan
https://en.cppreference.com/w/c/language/eval_order
Alex
数学の恋人
Cengizhan
but operators
Yes these are still valid but after result of function or calculated already. Otherwise, what will happened if f3() has dependency on f2()?
数学の恋人
still same I guess
数学の恋人
f1() f2() f3() which will call f2() as dep
Cengizhan
Please read what I shared from cppreference.
Mp
who knows how to balance a binary tree?
数学の恋人
/report ad scam
数学の恋人
BTW It looks like that message is being sent by many people without their desire
Anunay
Anunay
I read your message thankfully, might have banned 😆
Coding
Thank you👍👍
Anunay
数学の恋人
yeah
Anonymous
yeah
How did you get over the great Chinese firewall?
Dima
lol
数学の恋人
I'm not Chinese lol
Dima
it’s japanese
数学の恋人
Yes
Dima
Yes
Oh I get it, the same name as before:>
数学の恋人
Yes
数学の恋人
So wait you remember me?
first
i am a Chinese who get over the great Chinese firewall,haha
Alex
I was in Beijing, local Internet does not provide Google, Telegram etc. But international SIM card provides access to all these services
Hermann
where i find c standard?
Hermann
i found standard only in pdf-archivie site
Hermann
about C90
first
iirc,c has c99 html standard somewhere
first
HTML version of C standard draft (n1256.pdf)?
https://stackoverflow.com/q/4883212/6949852
Hermann
First standard is 89/90, right?
Anonymous
Ok, it's a draft of C11, but I don't think it really matters
Hermann
K&R is first standard
Hermann
What is a draft? ?
Anonymous
Hello, can someone recommend me a good data structures and algorithm book to begin with.
Đỗ
"The art.." trilogy of Donald Knuth
Đỗ
it's too old, but still good
Đỗ
or you can read a reduce version of Robert Sedgwick, cut the chase of many mathematic field relate to Algortihm
Anonymous
Anonymous
Is that okay???
Hermann
I used this https://www.amazon.com/Introduction-Algorithms-3rd-MIT-Press/dp/0262033844/ref=mp_s_a_1_1?dchild=1&keywords=algorithm+and+data+structure&qid=1595065458&sprefix=algorithm+and+data+structure&sr=8-1
Anonymous
Anonymous
in C f1(), f2(), f3() can be evaluated in any order because there is no sequence point in f1() * f2() + f3()
Onur
/get cbook