OT - Prosim o radu s C

Ales Prochaska prochaska@alsoft.cz
Úterý Srpen 29 15:49:05 CEST 2006


Dik.

Ales Prochaska

> Presne tak, pole je jiz preci samo o sobe pointer, takze delat &b je
> nesmysl.
> Takze bud musite pouzit test(b); nebo test(&b[0]);



> ----- Original Message -----
> From: "Michal HW" <michalgregor@centrum.cz>
> To: "HW-news" <hw-list@list.hw.cz>
> Sent: Tuesday, August 29, 2006 3:41 PM
> Subject: Re: OT - Prosim o radu s C


> Nema to byt test(b); ???
> Michal
> ----- Original Message -----
> From: "Marek Peca" <marek@tynska.cuni.cz>
> To: "HW-news" <hw-list@list.hw.cz>
> Sent: Tuesday, August 29, 2006 3:09 PM
> Subject: Re: OT - Prosim o radu s C


>> Omlouvam se za OT, ale zda se mi, ze je velka sance ze mi tu nekdo
>> poradi. Co je na tomhle ceckovem fragmentu spatne? Keil C o tom tvrdi,
>> ze "pointer to different objects".

>>     typedef int t[3];
>>
>>     void test(t *a) {}
>>
>>     void pokus() {
>>       t b;
>>       test(&b);
>>       }

> To je divny, na pohled mi to pripada v poradku a ani gcc -c -Wall
> -pedantic -ansi nic nenamita...

> Asi je vul ten Keil, tomu bych veril nejvic.

> ZdraviM.P.

> _______________________________________________
> HW-list mailing list  -  sponsored by www.HW.cz
> Hw-list@list.hw.cz
> http://list.hw.cz/mailman/listinfo/hw-list

> _______________________________________________
> HW-list mailing list  -  sponsored by www.HW.cz
> Hw-list@list.hw.cz
> http://list.hw.cz/mailman/listinfo/hw-list


> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.405 / Virus Database: 268.11.6/430 - Release Date: 28.8.2006


> _______________________________________________
> HW-list mailing list  -  sponsored by www.HW.cz
> Hw-list@list.hw.cz
> http://list.hw.cz/mailman/listinfo/hw-list





Další informace o konferenci Hw-list