Question subject: Re: what is the output of this program and how it be?
Posted: Fri Feb 18, 2011 3:37 pm
Joined: Tue Mar 27, 2007 10:55 pm Posts: 2272 Location: Earth Has thanked: 39 time Have thanks: 61 time
%s used to print a string of characters .
i didn't run this app, but it seems this p[3]-p[1] part removed the First part of the string . are you sure that the output is 2010 or G2011
_________________ Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )
saics
Question subject: Re: what is the output of this program and how it be?
Posted: Fri Feb 18, 2011 4:29 pm
Joined: Sun Jan 09, 2011 2:16 pm Posts: 56 Has thanked: 1 time Have thanks: 0 time
sure it's 2011 (check once if possible)... but i need hw this output came i.e. what operations takes place here on p...whether it performs on p's address or ascii values of "p" or any other...