+ 1
Passing strings inside quotes to a function misunderstanding
https://code.sololearn.com/cg4XTGu3MGs1/?ref=app Why cant I do this? (Line 6)
5 Answers
+ 6
Slewq Sorry i made myself unclear. You have two ways one is storing in main other is storing in function.
Here a example just changing the function.
https://code.sololearn.com/cqt0TEu08Eid/?ref=app
+ 5
You can but you need to store Hey somewhere. Can be in main and you pass in function or similar logic comparing your code could be your pass hey like you did but catch's using a local function char[] variable after that you makes the assignment.
+ 5
Slewq sorry i updated. You are welcome.
+ 2
Anya hi, I cant change the main function.
+ 2
Anya you have made some mistakes but I got your point and it is works perfect thank you.