Embed presentation
Download to read offline



This document discusses the printf function in C and how it can print the ASCII value of a character. It demonstrates code that declares a character variable ch with the value 'A' and uses printf with the %d format specifier to print the ASCII value of ch, which is 65. The document explains that printf treats ch as an integer when using %d, printing the underlying ASCII value rather than the character itself.

