Nicolas
Hi c/c++
Talula
Hi... whatever you mean.
Anonymous
Hello!
Pugazh
I have read thay
Yatogami
Solve this
Yatogami
Talula
Why?
BinaryByter
risky click of the day
BinaryByter
atleast we didn't get a screenshot
BinaryByter
Solve this
why shoudl we?
BinaryByter
Talula
why shoudl we?
So he can copy and show his girlfriends that he's smart.
BinaryByter
did you just assume that he has a girlfriend?
BinaryByter
i guess
Yatogami
Oh sorry actually i am trying this question on hackerRank and i am having difficulty in that table part where the 4th one is skipped..
BinaryByter
"hackerRank"?
BinaryByter
are you sure that its not university?
BinaryByter
i don't recall seeing "rupees" being used as a currency on hackerrank
BinaryByter
burn
Yatogami
Nope really i have to submit it on hackerRank..
BinaryByter
show me
klimi
thats awesome
Yatogami
Wait
klimi
thats awesome
very awesome
BinaryByter
why?
Yatogami
Anonymous
Done
Anonymous
I Am Human 😝😝😝
Anonymous
I dont. need To Prove It
BinaryByter
except that you did else you couldn't write here
Mihail
#howtoask
Yatogami
Okay sorry i will ask in the right way next time. For now i have solved the question.
Ritu Raj
Ritu Raj
Why I am getting this msg?
olli
Don't return pointer to local variables
Ritu Raj
But how can I return value in stored in str[3]?
Ritu Raj
I mean how can I return string here
olli
You cannot
olli
return "Yes"; might work, although it returns a const char* and not a char* This works because a string literal is constant and cannot be changed. Often it is stored in a different part of the memory. Since it is not restored inside your local stack frame it is safe to return a pointer to it.
olli
BTW to copy "Yes" you need space for 4 elements
olli
I mean how can I return string here
Another possibility, I strongly advise against, would be to make the array global and return a pointer to it. Safe to do since the array is not part of your local stack frame.
Anonymous
struct Node{ int v; Node* next; };
Anonymous
can some one explain me
Anonymous
please
Anonymous
why Nodw* next inside Node
Anonymous
Node*
Anonymous
why Node* point to itself
olli
struct Node{ int v; Node* next; };
To have a linked list. It should not point to itself but to another node
Anonymous
it can be recursive
Anonymous
v store value what Node*
olli
No, I wouldn't call it recursive. You can traverse the list recursively however
Anonymous
so Node* during declaration
Anonymous
of Node Struct
Ritu Raj
BTW to copy "Yes" you need space for 4 elements
Why would I need 4 space to store 3 characters?!.... Does it count null character too?
Ritu Raj
Yes
Ohk
olli
can some one explain me
Maybe this helps http://cslibrary.stanford.edu/103/LinkedListBasics.pdf
olli
Atharva
why Nodw* next inside Node
next is a pointer of type Node*
infi ptr
Anyone know how to cast android pie on windows 10 ? Please help. I need hd output with audio out and almsot zero latency. 1.tried winows connect. 2.few random apps that works fine for accessing files but not for third party apps. Suggest an alternate solution or a free software.
BinaryByter
emmm
BinaryByter
this is the reason why I hate java
klimi
What
klimi
who warned
klimi
why
klimi
@ollirz explain
olli
@ollirz explain
How is Java related to C/C++ group?
klimi
there is just about to keep it to minimum
olli
there is just about to keep it to minimum
* C/C++ discussion preffered (assembly also allowed), asking about other languages right after joining will get you BANNED.
klimi
we changed it?
klimi
oh, okay
klimi
my bad then
klimi
#ot
BinaryByter
wat?