yes I understand, thanks to both of you
On Sun, Jul 24, 2011 at 10:10 PM, rajeev bharshetty rajeevr...@gmail.comwrote:
value 200 exceeds the char range so -56 , to print 200 try unsigned char .
On Sun, Jul 24, 2011 at 10:06 PM, Prashant Gupta prashantatn...@gmail.com
wrote:
-56
On Sun,
it is printed in %d format nd not as %ch...
--
//BE COOL// kavi
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to
#includestdio.h
#includeconio.h
void main()
{
char ch=200;
printf(\n%d,ch);
getch();
}
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group,
-56
On Sun, Jul 24, 2011 at 8:15 PM, Arshad Alam alam3...@gmail.com wrote:
#includestdio.h
#includeconio.h
void main()
{
char ch=200;
printf(\n%d,ch);
getch();
}
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post
value 200 exceeds the char range so -56 , to print 200 try unsigned char .
On Sun, Jul 24, 2011 at 10:06 PM, Prashant Gupta
prashantatn...@gmail.comwrote:
-56
On Sun, Jul 24, 2011 at 8:15 PM, Arshad Alam alam3...@gmail.com wrote:
#includestdio.h
#includeconio.h
void main()
{
char
main()
{ int i=5;
printf(%d,fun(fun(fun(fun( fun(i));
}
void fun (int i)
{
if(i%2)
return (i+(7*4)-(5/2)+(2*2));
else
return (i+(17/5)-(34/15)+(5/2));
}
--
With Regards,
Balaji.S
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks
compiler error?? if the void is replaced by int, ans=155.
On Sat, Jun 18, 2011 at 11:33 AM, Balaji S balaji.ceg...@gmail.com wrote:
main()
{ int i=5;
printf(%d,fun(fun(fun(fun( fun(i));
}
void fun (int i)
{
if(i%2)
return (i+(7*4)-(5/2)+(2*2));
else
return
btw, i didn't understand the reason/motive behind this question? was
it some kind of test??
On Sat, Jun 18, 2011 at 11:45 AM, Harshal hc4...@gmail.com wrote:
compiler error?? if the void is replaced by int, ans=155.
On Sat, Jun 18, 2011 at 11:33 AM, Balaji S balaji.ceg...@gmail.com wrote: