- char prnt[] = “%d\n”; → Everything inside double quotes will be treated as string(array of characters) and will be stored in “prnt”.
- char prnt[0] = %
- char prnt[1] = d ………………
- prnt[1] = c → will replace “d” with “c”,
Further explanation is given in the “Explanation” of your question itself. Hope it helps!