So I have basically learnt this for fun on youtube, and for the most part I can understand what the guy had done, but there are some things I do not quite get.
Square brackets are used to access array element: input[0] is first element, input[1] is next and so on. input[i] is elements with index i.
whats happening on line 14
i is assigned length of string. THere is cast here (int) to suppress warnings (and it is here because whoever wrote this code choose variable types poorly)