On Fri, 2005-08-19 at 20:06, Peter Pravda wrote:
> Hi
>
> This piece of code works in Dev-C++:
>
> int a[10],b[10];
> a=b; /* array to array assignment */
>
> Why does it work? I experimented a little bit and found out, that it really copies one array to
> another. I think ANSI C forbids this. And it doesn't work with other compilers I tried (MS VC++,
> Borland C++ for DOS).
> I was googling some our, but found nothing about this feature.
> Any explanation?
=====
It works as expected here, I was not able to compile the code with
4.9.9.2.
gabriel
> Thx
> Peter
|