manas
++x increments before it is passed to the function, x++ increments after it has been passed but not evaluated
Dima
yes
Anonymous
but how the first one became 12 it was just x for that?
Кто-то
Can you write how compiler compiles it? (step by step)
Dima
Can you write how compiler compiles it? (step by step)
you can use onlinegdb or something to see the asm code
Anonymous
yes it would be really helpful
Dima
it’s the site
Anonymous
ok
Anonymous
thanks
Кто-то
just get to know the basics
What's the name of this topic ?
Anonymous
increment
Anonymous
pre/post increment
Dima
operators
Anonymous
oh
Anonymous
😅👌
Anonymous
I also had a question
Anonymous
Did input buffer get stored in hdd(swap partition) of older machines?
Anonymous
??
Anonymous
i understood the concept of pre/post increment
Anonymous
int x = 10; printf("%d\n", x); printf("%d\n", x++); printf("%d", ++x);
Кто-то
preincrement and postincrement operators, that’s why
https://stackoverflow.com/questions/11060968/using-the-post-increment-in-function-arguments I've found at stack and it's UB
Anonymous
= 10 10 12
Anonymous
but the output 12 10 12 was an undefined behaviour.
Anonymous
*12 11 12
Anonymous
👌
manas
I guess the value of x can vary
manas
++x and x++ values will be the same though, right?
Anonymous
MAYBE
Anonymous
but I think it's UB
Anonymous
Good day
Anonymous
Good day
Anonymous
How can I call a c++ function that’s stored in the memory?
A
pointer?
Anonymous
Yes
Anonymous
I don’t know much c++. However, I want to know how this is done.
Anonymous
The parameters are in the stack area, and the function body is in the code area.
Asad
but how the first one became 12 it was just x for that?
because, we don't know in which order computer executes the code. it can be in any sequence
Asad
right?
klimi
\0
klimi
On the end
Nameful
He's dereferencing it
Nameful
if you are referring to line 4
klimi
Oh then my bad
klimi
I'm really dumb '^^
Nameful
I'm really dumb '^^
Don't be so hard on yourself Klimi
Anonymous
Hii
Anonymous
Can anyone tell how i am product based company
klimi
Undefined data
klimi
Could be something on your stack or some other memory AFAIK...
klimi
By the pointer
klimi
Pointer points to the first character
klimi
Then if you know it points off, you can edit the pointer
klimi
If you dont know by how many characters it is, there is no way of knowing
klimi
You're welcome
Anonymous
Any one knows how to hack website
Nameful
Any one knows how to hack website
step 1: install Kali Linux step 2: run aplay /dev/random <address to website>
VAIBHAV
Anyway to use visual basic in android 10
VAIBHAV
This is unrelated to c++
But that is used to code cpp
VAIBHAV
A tool
VAIBHAV
Anonymous
Hii
klimi
Hii
Hi?
Anonymous
Anyone know search set
Anonymous
I used it
Anonymous
I got 55℅ in 12th maths me applicable for product base company
Anonymous
Use cxx droid , playstore
Anonymous
I got 55℅ in 12th maths me applicable for product base company
pru
Any good source to learn stl cpp library?
Anonymous
Dima
Any good source to learn stl cpp library?
https://www.cppreference.com is fine too
Wisenky
anyone would help me to fix a function in my source code , pm pls
Wisenky
I dont want to flood here