BinaryByter
explain him WHY passing by ref is faster
MᏫᎻᎯᎷᎷᎬᎠ
But it's a good practice to pass by reference
BinaryByter
const reference*
MᏫᎻᎯᎷᎷᎬᎠ
You see
MᏫᎻᎯᎷᎷᎬᎠ
You don't have to make copies to the object
BinaryByter
why don't you have to make copies witih references?
MᏫᎻᎯᎷᎷᎬᎠ
Copies cost a performance issues
BinaryByter
i'm asking to make sure that you got it
BinaryByter
I know it, obviously ;)
MᏫᎻᎯᎷᎷᎬᎠ
Lol
MᏫᎻᎯᎷᎷᎬᎠ
Well
MᏫᎻᎯᎷᎷᎬᎠ
I said wtf to impress you
MᏫᎻᎯᎷᎷᎬᎠ
Not kidding
MᏫᎻᎯᎷᎷᎬᎠ
Lol
MᏫᎻᎯᎷᎷᎬᎠ
XD
MᏫᎻᎯᎷᎷᎬᎠ
Still maxi
MᏫᎻᎯᎷᎷᎬᎠ
These are a basic things
BinaryByter
have you understood it?
BinaryByter
C++-programmer
MᏫᎻᎯᎷᎷᎬᎠ
Anyway
MᏫᎻᎯᎷᎷᎬᎠ
Indians have their encouragement
MᏫᎻᎯᎷᎷᎬᎠ
Most of them wants to be like google CEO
MᏫᎻᎯᎷᎷᎬᎠ
he is an indian
BinaryByter
exactly
BinaryByter
pointers are 64 bits big
MᏫᎻᎯᎷᎷᎬᎠ
Yup
BinaryByter
pointers are 64 bits big
so if your primitive type is smaller than that, it won't help you
BinaryByter
but anything above should be passed by reference
BinaryByter
and if you can, as a const reference
MᏫᎻᎯᎷᎷᎬᎠ
Cuz the pointer is itself is copied
MᏫᎻᎯᎷᎷᎬᎠ
Not the value
MᏫᎻᎯᎷᎷᎬᎠ
You are welcome
MᏫᎻᎯᎷᎷᎬᎠ
I don't know
Dima
top kekker
MᏫᎻᎯᎷᎷᎬᎠ
I don't know C Sorry
14•08
14•08
It boring
14•08
Yah but its not choice for one who wanna be perfect programmer .this shiit is necessary😂😂
BinaryByter
/ban are you seriousl, rahul? sing a song!
Anonymous
lel
14•08
Tek a look wat's Mark zucker berg doing.... He is perfect
Anonymous
No
14•08
Go n find his movie . he has explained everything from bottom up to successful programmer
Anonymous
#ot
BinaryByter
Anonymous
Just bullshit discussion, perfect for ot
Anonymous
:^)
Anonymous
Hi there
Wen
Hi
Anonymous
:)
Aniket
If conditions is given a b c 1 2 3 We have to keep a b c as it is but we have to reverse 123 as 3 2 1 in php please tell logic.
Anonymous
#ide
Anonymous
Hi
Rajni
Hiii
Anonymous
Hi
Morgan
Welcome
Anonymous
Hi guys
Anonymous
I have a doubt regarding data structures in cpp
Morgan
What's up
Morgan
Say it
Anonymous
Okay.
Anonymous
so guys there is a header file in cpp called stack which let's us create stack without much hassle
Anonymous
I am doing a nonrecursive iteration of tree
Anonymous
https://pastebin.com/XCWvpu3g
Anonymous
so how to make stack of my user defined data type.
Anonymous
struct BinaryTree{
Anonymous
struct binaryTree{ int root; binaryTree* left; binaryTree* right; }
Anonymous
can i do stack <binaryTree*> binaryStack;
Anonymous
will this work?
Anonymous
Can you send anyone constructor program and + operator and this pointer programs of c + +
Mat
/warn useless