the output is compiler dependent.. On Mon, Jul 11, 2011 at 10:29 PM, Kamakshii Aggarwal <[email protected]>wrote:
> > puts(str) will print the string copied even if it has no null character. > also strncpy will not create any problem > > > On Mon, Jul 11, 2011 at 10:19 PM, Ankur Khurana > <[email protected]>wrote: > >> if we are using strncpy( destination , source , num_of_char) >> >> then if destination have less space allocated than num_of_char , what will >> happen ? >> >> Also , if there is no null char after string, what will happen , puts(str) >> //where str is the string wihtout NULL character . I was not able to find >> any reference regarding these doubts . Any suggestion or readable material ? >> >> >> >> -- >> 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, > Kamakshi > [email protected] > -- Regards, Kamakshi [email protected] -- 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.
