Answer to Question #106518 in C++ for Haroon hanif

Question #106518
We use a string lenght 50

And we want to add two string values


And stores in 3rd value


We make a function void in

And void show


Since 1st and 2nd function can input values from void in


And show it


But 3rd function has no value input from user


And it will not show value of 3rd beacuse we didn't input value from user


And we use


Constructor

Str[0]=`\0`;



So it can successfully show the value
Without print any other characters on screen.


If we not use it

We shows characters on output screen.



Why,i cant understand.


I'll show an ex.




Private:

Char [50];

public:

Str[0]=`\0`;


Why we are using it.


And tells me which should i follow.
1
Expert's answer
2020-03-29T12:37:11-0400
Dear Haroon hanif, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS