Whats wrong in this?
o/p is--> %.#s Zi
*%.#s *is printed as usual and *Zi  *is printed coz of *%.2s *it will print
only 2 characters as written after decimal place. :)
It wil ignore 2nd str

On Fri, Jul 15, 2011 at 1:31 AM, rShetty <[email protected]> wrote:

> #include<stdio.h>
> int main()
> {
>  char str[] = "Zingle Bell Zingle Bell";
>  printf("%.#s %.2s\n",str,str);
>  return 0;
> }
>
> I need the help to figure out the output of the program and please
> expalin the behaviour of the printf statement here ?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>
>


-- 
**Regards
SAGAR PAREEK
COMPUTER SCIENCE AND ENGINEERING
NIT ALLAHABAD

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to