Dima
> coding on a phone in 2019
Mat
> coding on a phone in 2019
Where's the problem?
Dima
in this sentence
777
dll injection with CreateRemoteThread not main e how do I write?
777
do I run my code without creating a separate thread on a target exe?
Mxit
Can anyone please explain linked list using code and being able to create one that can take in integers
Palinuro
try it
Anonymous
vscodium.com
not working
Anonymous
Palinuro
oh shit
Palinuro
www.vscodium.com
Palinuro
this one works
Palinuro
Palinuro
refresh a couple of times now
S
Hi
S
Write a program to enter any 4 digit number and print all the possible 3 digit numbers in c
Pavel
Write a program to enter any 4 digit number and print all the possible 3 digit numbers in c
Read the rules in the pinned message, especially the 6th point.
Yashpal
for (i=0;i<10;++i) for (;i<15;++i); printf ("%d", i); Here result is 16 But how and why?
Pavel
for (i=0;i<10;++i) for (;i<15;++i); printf ("%d", i); Here result is 16 But how and why?
You have a ; at the end of the second loop. So what you do is incrementing i in the inner loop until it stop satisfying (i<15), so it is 15 after that loop ends. Then you do another increment in the outer loop and check if it satisfies (I<10), so it is 16 after that. Then you print it outside the loops
András
In first iteration of bigger loop, u will enter smaller. In smaller i became 15, and loop terminate. Than i increase to 16, after that bigger loop terminate, so answer is 16
Morgan
Hey anyone here?
Anonymous
What do you need
Nursultan
🖖
Anonymous
Can some suggest me a project topic ?
Anonymous
One *
Anonymous
I don’t know what I can build with c++
Anonymous
Please text me a personal message.
Mat
Can some suggest me a project topic ?
What do you mean by A project?
MᏫᎻᎯᎷᎷᎬᎠ
What do you mean by A project?
He means that he wants to practice on C++ with A PROJECT
Dima
What the hell
Хамза
What the hell
sorry i did not mean to send it here
András
Sql... Beeee...
Ludovic 'Archivist'
Anonymous
Malevolent
Is it possible to return an array from a function?
Anonymous
Yes. Return vector.
🎩
arrgh fucking MPI
🎩
there's so little resources on it online
András
Yes. Return vector.
Return std::array
András
He sad array
kvark
Is it possible to return an array from a function?
pure array in cpp is just a pointer. So.. just return pointer)
András
So let's return array
Anonymous
He sad array
Oh yes. Thanks
kvark
It is not just a pointer lol
if u don`t want segmentfnion fault its also size, but meh)) i dont care)))
kvark
just allocate 100500 bytes
kvark
it's always help for me
Anonymous
Dude, what are you talking about? Raw arrays are NOT pointers, it is a separate type Yes, it can decay to a pointer but it doesn't mean it is obe
Anonymous
T[n] is not T*
kvark
T[n] - Pointer to stack. T* a = new T[n] - pointer to heap?
Anonymous
T[n] is an array T* is a pointer
kvark
T a[n]; array on stack *(a + sizeof(T)*i) - same as a[i]
Anonymous
T[n] is not T*
T[n] can be accessed using pointer notation. In fact it is converted to pointer notation by compiler.
Samiran
While using inline function can someone please tell me that whether the entire code in the function is substituted in place of the function call or whether a part of it is substituted
Anonymous
T[n] can be accessed using pointer notation. In fact it is converted to pointer notation by compiler.
It can be implicitly casted to a pointer, but it is a separate type though
Anonymous
T[n] - Pointer to stack. T* a = new T[n] - pointer to heap?
Don’t use raw pojntes. Use smart pointer in that you don’t have to manage yourself
kvark
ok, without sizeof(), sorry/ but it still pointer
Samiran
It is up to a compiler
Like my teacher tells us that prolog and epilog is skipped and on the Internet I found the whole code is substituted
Anonymous
It is up to a compiler
Whether to inline function fully or not to at all
András
Samiran
Anonymous
Why?
Because It Is A separate Type
Anonymous
Your teacher giving a wrong information
Anonymous
There's no prolog or epilog
kvark
a is a pointer!