#include<cstdio>
int main()
{
int a=10;
printf("%d%d\n",-1,a);
return 0;
}
will print -110
#include<cstdio>
int main()
{
int a=10;
printf("%d\n",a);
return 0;
}
will print 10
On Thu, Aug 18, 2011 at 12:10 AM, sandeep pandey <
[email protected]> wrote:
> #include<cstdio>
> int main()
> {
> int a=10;
> printf("%d\n",-1,a);
> return 0;
>
> }
>
> why this program print -1;
> can anyone explain me d reson.
> ?
>
> --
> You received this message because you are subscribed to the Google Groups
> "google-codejam" 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/google-code?hl=en.
>
>
--
Thanks & Regards,
*Satyajit Bhadange
Software Programmer*
*Problems & Solutions* <http://satyajit-algorithms.blogspot.com/>
--
You received this message because you are subscribed to the Google Groups
"google-codejam" 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/google-code?hl=en.