#Why the second output is 0 instead of 5?
34 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
@harsh marsh
Your message appears to contain screenshots but no code. Please send code and error messages in text instead of screenshots if applicable!
I thought, since I am passing by reference I have set the variable Marks equal to 5 permanently
you are not passing by reference here
you are passing an pointer in
Ohh
You're making a new instance of the ujju class, and not initializing the Marks member field
in fact the value of Marks is undetermined due to it not being initalized
non of these are by reference
it's called pass by reference in C but C++ actually has references
means whoever taught this in tutorial was wrong
Ohh
Which IDM do you recommend btw?
IDM?
visual studio 100%
alright! thanks
@harsh marsh Has your question been resolved? If so, type !solved :)
do u need help understanding pointers?
Yes that would be appreciated
Btw I thought I had closed this post
!solved
Thank you and let us know if you have any more questions!
This thread is now set to auto-hide after an hour of inactivity
You should try to learn about const ref or std::move
i think that’s a bit ahead of him
Hello is it possible to link cpp to to html? If possible how can I link c++ with html please
This doesn't seem relevant to this thread