Hi,
At first you have to initialize the variable size, later you have to assign value to char array arr.
Else system wont be knowing the size of Char array.