C examples for Language Basics:printf
After the call to printf( ) has returned, this variable will hold the number of characters output, up to the point at which the %n was encountered.
#include <stdio.h> int main(void) { int count;//from w w w.j av a2 s . c o m printf("this%n is a test\n", &count); printf("%d", count); return 0; }