output : interview reason
in main ii gets a value 7 thru the statement (ii+ (++j)) --> (1+6) so we pass(7 "campus interview") which will be treated as 7[base address of "campus interview"] which further means *( base address of "campus interview" + 7) and so the output "interview" am i clear? On Sun, Aug 21, 2011 at 10:56 PM, Puneet Chawla <puneetchawla...@gmail.com>wrote: > We are converting const char* into char * here > > > On Sun, Aug 21, 2011 at 10:55 PM, Puneet Chawla <puneetchawla...@gmail.com > > wrote: > >> how..??? >> >> >> On Sun, Aug 21, 2011 at 10:53 PM, Sanjay Rajpal <srn...@gmail.com> wrote: >> >>> the o/p wil be Interview. >>> >>> >>> >>> Sanju >>> :) >>> >>> >>> >>> On Sun, Aug 21, 2011 at 10:20 AM, SuDhir mIsHra < >>> sudhir08.mis...@gmail.com> wrote: >>> >>>> funct(char* str) >>>> { >>>> printf("%s\n",str); >>>> } >>>> main() >>>> { >>>> static int ii = 1; >>>> int jj = 5; >>>> ii+=++jj; >>>> funct(ii+++"Campus Interview"); >>>> } >>>> >>>> -- >>>> 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 >>>> algogeeks+unsubscr...@googlegroups.com. >>>> For more options, visit this group at >>>> http://groups.google.com/group/algogeeks?hl=en. >>>> >>> >>> -- >>> 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 >>> algogeeks+unsubscr...@googlegroups.com. >>> For more options, visit this group at >>> http://groups.google.com/group/algogeeks?hl=en. >>> >> >> >> >> -- >> With regards >> ............ >> Puneet Chawla >> Computer Engineering Student >> NIT Kurukshetra >> >> > > > -- > With regards > ............ > Puneet Chawla > Computer Engineering Student > NIT Kurukshetra > > -- > 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 > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- 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 algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.