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
Dima
{ data++;} cout << data1 in main and the value of data1 remains zero why?
here’s an example for you: int a = 4; int* b = &a; (*b)++; std::cout << *b; will print 5
Indolent
Wish I had a proper laptop so I could copy paste code
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() ;
MᏫᎻᎯᎷᎷᎬᎠ
:D
Anunay
Thanks!
MᏫᎻᎯᎷᎷᎬᎠ
Welcome
Cengizhan
F1() then F2() then F3()
No, in C there is no guarentee that which function is called first.
Cengizhan
Order of function evaluation is not defined in C.
CappedCrusader
No, in C there is no guarentee that which function is called first.
Yes order of function is not defined in C ,but
CappedCrusader
No, in C there is no guarentee that which function is called first.
Is it right to say that first either F1() or F2() will execute ( F1() , F2() before F3() )
CappedCrusader
What about c++
CappedCrusader
Anybody ???
Alex
for C is it also right
Alex
because of operator priority
Alex
operator* has more priority than operator+
CappedCrusader
because of operator priority
Yes your reason looks valid
CappedCrusader
I think no.
Why you are saying this ?? What is the reason
CappedCrusader
What about c++
. Anybody ???
Cengizhan
operator* has more priority than operator+
Yes but this is valid after function results.
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
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
I read your message thankfully, might have banned 😆
Coding
Thank you👍👍
数学の恋人
I read your message thankfully, might have banned 😆
yeah actually I saw a barrage of those messages in many groups
Anunay
yeah actually I saw a barrage of those messages in many groups
Scammers generally do it with an army of user bots
数学の恋人
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
where i find c standard?
Google banned you? It's literally first result in Google
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
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
because of operator priority
no. precedence and associativity do not decide order of evaluation
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