output is machine dependent. On 9/1/11, sukran dhawan <[email protected]> wrote: > sizeof considers everything between double quotes + /0 character > strlen reads until first \0 > > On Thu, Sep 1, 2011 at 5:49 PM, sukran dhawan <[email protected]>wrote: > >> 9 and 3 >> >> >> On Wed, Aug 31, 2011 at 9:22 PM, rohit <[email protected]> wrote: >> >>> output?? >>> >>> int main() >>> { >>> char *d = "abc\0def\0"; >>> printf("%d %d",sizeof(d),strlen(d)); >>> getch(); >>> } >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Algorithm Geeks" group. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msg/algogeeks/-/nf_M_Yoep_EJ. >>> 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. >>> >> >> > > -- > 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. > >
-- *Anil Arya, Computer Science * *Motilal Nehru National Institute of Technology,Allahabad . * -- 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.
