box-o-sand/oldstuff/PracticingC/gowrikumar/src/10b-nestedprintf.c

18 lines
371 B
C

/**
* :author: Dan Buch (daniel.buch@gmail.com)
*/
#include <stdio.h>
int main()
{
int i = 43, nprinted;
nprinted = printf("%d\n", printf("%d", printf("%d", i)));
nprinted = printf("(the last one was %d characters)\n", nprinted);
nprinted = printf("(and that was %d characters)\n", nprinted);
return 0;
}
/* vim:filetype=c:fileencoding=utf-8
*/