hey array indexing starts from 0 rite?? then y shld u get overflow in first place...... s t r i n g s \0 0 1 2 3 4 5 6 7
On Sat, Jun 12, 2010 at 9:14 PM, divya <[email protected]> wrote: > #include<stdio.h> > int main() > { > char str[7]="strings"; > printf("%s\n",str); > return 0; > } > > here i m nt getting overflow error whereas if i write stringss instead > of strings then there is overflow error.. isnt null stored after s in > strings nd 1st case shd also give overflow??? > > -- > 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]<algogeeks%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > > -- yezhu malai vaasa venkataramana Govinda Govinda -- 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.
