oh.. yes.. my mistake (strings\0).length=8 :P -------------------------------------------------- Rohit Saraf Second Year Undergraduate, Dept. of Computer Science and Engineering IIT Bombay http://www.cse.iitb.ac.in/~rohitfeb14
On Sun, Jun 13, 2010 at 10:24 AM, Rahul Kushwaha <rahul.kushw...@gmail.com>wrote: > #include<stdio.h> > int main() > { > char str[7]="strings"; > printf("%s\n",str); > return 0; > } > > > it is showing error on code block and dev cpp also... > this is an error no doubt..... > also mentioned in denis m ritchie........ > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algoge...@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com<algogeeks%2bunsubscr...@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 algoge...@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.