Sunday, September 26, 2010

Printf Concept


/*
* Printf.c
*printf return the number of characters which is to be displayed in the console window.
* Created on: Sep 26, 2010
* Author: Karthikeyan.D
*/


# include <stdio.h>
int main()
{
int nCount=0;
nCount = printf("Hello India\n");
printf("%d",nCount);
return 0;
}

OUTPUT:

Hello World
12


Note: \n consider as a escape sequence and also number of character count for this is only one. not two.



No comments:

Post a Comment