Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/06/06 17:27
Read: times


 
#121752 - Not sure about that
Responding to: ???'s previous message
Hasn't posted in a while and don't have tieme to check properly.

If I remeber well the

int i;
for(i=0;i<plop;i++)
is valid and i is available out of the body of the for

int i=0;
for(;i<plop;i++}
is equivalent

for(int i = 0;i<plop;i++)
is valid, but the scope of i is just the inner loop code

for(i=0;i<plop;i++})
is valid, if you are using microsoft Visual C++ version 6 which doesn't comply with standarts at all

C compilers usually dont guess types, specially because C is weakly typed language and that the size representation of a type is quite important (ok there is the sizeof macro), but the one who never used some (.... syntax erors excluded)
#ifdef __BIG_ENDIAN
CODE
#elsif
CODE'
#endif

with CODE breaking a data type for serialisation or any other processor word size aligned composition can send me the first stone.

This being said, I haven't checked, so I might be wrong

Best,
Ben



List of 9 messages in thread
TopicAuthorDate
spot the difference            01/01/70 00:00      
   C++ magic            01/01/70 00:00      
      so, who's got a C++ for 805x?            01/01/70 00:00      
         wrangling the architecture to do something it was            01/01/70 00:00      
            more shome sort of mishtake            01/01/70 00:00      
      Not sure about that            01/01/70 00:00      
         C++ and C99            01/01/70 00:00      
            IAR has C++            01/01/70 00:00      
   new sdcc c99 switches            01/01/70 00:00      

Back to Subject List