*@ Saurabh Singh gcc doesn't give it as error but turbo gives it as error ... As per ANSI C there is no error becoz n is already known before use... * On Sun, Mar 27, 2011 at 8:44 AM, saurabh singh <saurab...@gmail.com> wrote:
> The array allocation in c should be done at compile time.since its defined > in c gcc rightly gives an error. > I am not sure why turbo c does not gives an error but you need not worry > about it,its how it might be implemented.Compilers are free to implement the > language in the way they want. > -- > Saurabh Singh > B.Tech (Computer Science) > MNNIT ALLAHABAD > > > -- > 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 Deoki Nandan Vishwakarma IITR MCA Mathematics Department * -- 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.