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'.

Was this page helpful? YES NO

Are you a blogger? Join our Blogging forum.

Comments and Discussions

© https://www.includehelp.com (2015-2018), Some rights reserved.

close Like other websites, this site uses cookies to deliver relevant ads based on your interest, by using our website, you acknowledge that you have read our privacy policy.