+ 1

Why some programmer use char array of int instead of using strings,? And how to generate this char array from a string?

As in this code: https://code.sololearn.com/cKpJv8d3wz68/?ref=app

24th Sep 2017, 12:45 PM
Aboelazm Mohamed
Aboelazm Mohamed - avatar
1 Antwort
+ 8
WHY? There's no definite answer for the usage between character array and string. The reason I can think of for the example you've provided is obfuscation. The purpose of obfuscation is to make the code harder to understand by human so we cannot directly infer the message templates available (there are 8 of them). Of course, this does not prevent someone who interested to find it out or 👽 that can read out the ASCII values in a single pass. HOW? You may refer to here: https://code.sololearn.com/caJ8u1CR7lmX/?ref=app
24th Sep 2017, 1:26 PM
Zephyr Koo
Zephyr Koo - avatar