C examples for Language Basics:printf
Finding printf()'s return value
#include <stdio.h> int main(void){ int v = 212;//from w ww . j a v a 2 s . c o m int rv; rv = printf("%d F is water's boiling point.\n", v); printf("The printf() function printed %d characters.\n", rv); return 0; }