Article View: comp.lang.c
Article #1372Re: p = {1,0,0}
From: bartc
Date: Sat, 07 Nov 2026 22:18
Date: Sat, 07 Nov 2026 22:18
79 lines
2842 bytes
2842 bytes
On 07/11/2026 19:14, fir wrote:
> bartc pisze:
>>>
>>>
>>> there is also option
>>>
>>> int rand { rand = rand()}
>>
>> Which means...?
>
> check also this you got
> a structure module
>
> some
> {
> int x;
> }
>
>
> some is structure but also may be use as 'type'
Well, those are the same thing.
>
> main()
> {
> some;
Stop: what have you just declared here?
> some.x = 10;
So now 'some' is a variable of type 'some'?
This is either nonsensical, or you've left something out or mixed
something up.
> some a,b,c;
>
> a.x = 10 ;
>
> }
>
> now get an array of some
>
> some[Y][X];
>
> all a function part to it
>
> some[Y][X] (int v)
So, what is 'some' /now/?! Is is a function, type or variable? You know
it would be very easy to explain.
> {
> int val;
>
> for (int j=0; j<Y; j++}
> for (int i=0; i<X; i++}
> {
> some[j][i].val = v;
> }
>
> }
How does this code get invoked?
>
> some[100][100](3);
>
> //creates table of 100x100 of some and calls on it so it feels up with 3
OK. So you're calling a typespec.
Oh, I give up.
Technical Details
Message-ID:
<11co83c$3rmef$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<11c7f1j$20b9h$1@dont-email.me> <11c7fj6$20gab$1@dont-email.me> <11cae5m$318tq$1@dont-email.me> <11calrt$34gq3$1@dont-email.me> <11carqs$36m0o$1@dont-email.me> <11cb4hs$3a13l$1@dont-email.me> <11ccnkq$3pjhd$1@dont-email.me> <11ccobd$3ps4l$1@dont-email.me> <11cctee$3rtjh$1@dont-email.me> <11ccu0t$3s54f$1@dont-email.me> <11ccv4n$3sjn5$1@dont-email.me> <11cd05l$3t1er$1@dont-email.me> <11cd0q3$3ta28$1@dont-email.me> <11cd1vs$3tpfp$1@dont-email.me> <11cntae$3nme2$1@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: bartc <bc@freeuk.com>
Newsgroups: comp.lang.c
Subject: Re: p = {1,0,0}
Date: Sat, 7 Nov 2026 22:18:20 +0000
Organization: A noiseless patient Spider
Lines: 79
Message-ID: <11co83c$3rmef$1@dont-email.me>
References: <11c7f1j$20b9h$1@dont-email.me> <11c7fj6$20gab$1@dont-email.me>
<11cae5m$318tq$1@dont-email.me> <11calrt$34gq3$1@dont-email.me>
<11carqs$36m0o$1@dont-email.me> <11cb4hs$3a13l$1@dont-email.me>
<11ccnkq$3pjhd$1@dont-email.me> <11ccobd$3ps4l$1@dont-email.me>
<11cctee$3rtjh$1@dont-email.me> <11ccu0t$3s54f$1@dont-email.me>
<11ccv4n$3sjn5$1@dont-email.me> <11cd05l$3t1er$1@dont-email.me>
<11cd0q3$3ta28$1@dont-email.me> <11cd1vs$3tpfp$1@dont-email.me>
<11cntae$3nme2$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 07 Nov 2026 22:18:21 +0000 (UTC)
Injection-Info: dont-email.me;
logging-data="4053455"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1800FL8cA66B/HFfrvrOqer"; posting-host="09299e4ea85b4fbab71928f8203a3426"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:7XSocZvKU8hkYjSNOYtysaFszqM= sha256:JQJFzvAXe+1h7thDM3phNg1/uLS3dJgsVylL7umkCvg=
sha1:UHJDQBqZ04RiRAeMD2P9T6Vo4Do= sha256:4PlqlxfRUKVv6qvdEPD5novi5rezYHcjqRj+hXfPR/c=
In-Reply-To: <11cntae$3nme2$1@dont-email.me>
Content-Language: en-GB