Arun Prasath
unread,Jan 6, 2005, 8:47:50 AM1/6/05Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CppF...@googlegroups.com
Hi all,
In 'C' i seen one format string %n and one example to
explain abt that.
Program:
**********
int main()
{
char a[]="WELCOME";
int i;
printf("%s%n",a,&i);
printf("The Total No of Printed Character is: %d",i);
return 0;
}
Output:
********
The Total No of Printed Character is: 7
Is this only the purpose of %n. I want to know some more abt it. If u
know any other functionality of %n plz give ur explanation with sample
code..
Thanks to all.