304 views

1 Answer

0 votes
0 votes
  1. 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   ………………

 

  1. prnt[1] = c → will replace “d” with “c”,

Further explanation is given in the “Explanation” of your question itself. Hope it helps!

Related questions

–2 votes
–2 votes
0 answers
1
saket nandan asked Apr 8, 2019
419 views
plzzz explain how this code is executed
1 votes
1 votes
1 answer
3