Open link for code - https://ide.codingblocks.com/s/111361
In here I declared a char array of size 2 but while taking input using cin.getline() I mentioned the size as 5 and so it took 5 inputs including null character.
My question is how char array increased its size, take the input and print it? Also using sizeof() function its showing size as 2 only.