Embed presentation
Download to read offline



This document discusses the printf function in C and how it can print characters. It demonstrates code that declares a character variable ch with the value 'A' and prints it using printf("%d", ch), which prints the ASCII value of A, 65, since %d expects an integer but ch contains a character. The document explains that ch contains the character A, not the ASCII value, but printf treats it as an integer for printing purposes.

