Home | Department of Computer Science

printf(specification, value1, value2, …); The specification contains strings and format codes. Some format codes: %sshow a null terminated string (must pass an address) %dshow an integer value %ldshow a long integer value %fshow a floating point value %lfshow a double value %eshow a floating point value using scientific notation %cshow single ... ................
................