Yes, and understand that the "ch" you are having returned from encode() is a COPY of the "ch" you have in main(), and of course, has been given a different value, ( by encode() ).
Type: Posts; User: Adak
Yes, and understand that the "ch" you are having returned from encode() is a COPY of the "ch" you have in main(), and of course, has been given a different value, ( by encode() ).
The problem you're having is caused by not knowing how ch is being used here. The ch in main() is NOT the same as the ch variable in encode() - that is a COPY of the ch from main().
If you want to...