Re: [Dev-C++] Array to array assignment
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Petchesi G. <ga...@pr...> - 2005-08-20 09:24:21
|
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 |