C C++ Java Data Structure Python JavaScript CSS Ajax PL/SQL PHP Puzzles C programs C++ programs Java programs

Home » C programs » C misc. programs

C Example for nested 'printf'

In this example, we will learn how to use nested printf statement in C program, how it works and what values will be printed?
Submitted by Shamikh Faraz, on February 25, 2018

Consider the given example:

#include <stdio.h>

int main()


	return (0);



includehelp	11

It prints "includehelp 11". Word 'Includehelp' prints, because it is written under printf and but first printf is printing the number of letters counted in the word 'includehelp' i.e., so it is 'includehelp 11'.

Liked this article? Do share with your friends :)

Are you a blogger? Join our Blogging forum.