Re: Zero terminated strings



On Sun, 02 Aug 2009 03:23:59 -0700, spinoza1111 wrote:

On Aug 2, 6:16 pm, Moi <r...@xxxxxxxxxxxxxxxxxxx> wrote:
On Sun, 02 Aug 2009 03:11:37 -0700,spinoza1111wrote:


Duh...isn't char str[] == char *str, and doesn't that mean that
stacking that struct would be a trivial operation, involving maybe 8
bytes of data? Or did that famous Standard mung that equivalence too?

OMG
Case closed.
Next!

Perhaps it isn't anymore: perhaps it never was. I do recall that these
were alternative ways of expressing an array.

I stopped using C because like Fortran and Cobol, it was (and is) an
artifact about which little sensible or intelligent could be said, and
it generated authoritarian folklore. So fill me in.

Hint: sizeof. Hint 2: lvalue.


I certainly don't believe that the above would stack the array. I
believe it would stack a pointer to the array.

How could recursion ever work if each invocation of the funtion would
actually share the same "local" variables ?

I'm not here to learn an outdated and buggy language, especially not
from you clowns. I am here to get rid of Heathfield, who makes

Then don't post here.

intelligent and humane discussion on comp.programming. But if I have to
relearn C to do so, I will. I will get Navia's compiler reinstalled on
my system if I must.

You can get plenty of help from this n.g.
If you are really willing to learn.

HTH,
AvK
.



Relevant Pages

  • Re: Zero terminated strings
    ... Or did that famous Standard mung that equivalence too? ... I certainly don't believe that the above would stack the array. ...
    (comp.lang.c)
  • Re: accessing 3D FFT data as 1D/3D complex/real arrays
    ... > representation but might not be one as long as it acts like one. ... I believe it has to act like one even in the case of EQUIVALENCE ... > be guaranteed that the first array element would be the real part and ... > This is not standard conforming. ...
    (comp.lang.fortran)
  • Re: equivalence statement my small research
    ... array was used for different program arrays at different times. ... Equivalence is not and has never been dynamic. ... FORTRAN for parameter passing by reference. ... I tend to be careful about answering ...
    (comp.lang.fortran)
  • Re: Filter multi-dimensional array
    ... You have just become the first person to mention equivalence in this ... iterate over array elements. ... Are you saying that most third-party libraries modify - ...
    (comp.lang.javascript)
  • Re: equivalence with dummy arguments
    ... EQUIVALENCE two variables in two different COMMON blocks ... a variable or array in COMMON can easily also EQUIVALENCE ... In PL/I one can work with part of a complex number, ...
    (comp.lang.fortran)