S
Stang1
In C, these are legal right?
a[b++] = 0;
a[b=c+d] = 0;
Thanks
a[b++] = 0;
a[b=c+d] = 0;
Thanks
Stang1 said:a[b++] = 0;
Stang1 said:In C, these are legal right?
a[b++] = 0;
a[b=c+d] = 0;
Stang1 said:a[b++] = 0;
a[b=c+d] = 0;
Stang1 said:a[b++] = 0;
Perfectly legal, and often used in cycles.
int b=0;
while (b<10)
a[b++]=0;
a[b=c+d] = 0;
This is legal too. But sure very, very inelegant to see and understand.
--
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/CM/CC/E/IT/LS/M d-(--) C++++$ UBL++++$ P++++ L+++++$ E--- W+++ w--
PS+++ PE-- Y++ PGP+++ R++ tv-- b++>+++ D+ G>+++ e++>+++++ h* r++ z+++
------END GEEK CODE BLOCK------
Stang1 said:a[b++] = 0;
Perfectly legal, and often used in cycles.
int b=0;
while (b<10)
a[b++]=0;
a[b=c+d] = 0;
This is legal too. But sure very, very inelegant to see and
understand.
--
But i have one more doubt..
Here value of b is taken for index or result of this operation (b=c
+d), that is true or false??
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.