View Single Post
  #6   Spotlight this post!  
Unread 31-12-2006, 16:12
Salik Syed Salik Syed is offline
Registered User
FRC #0701 (RoboVikes)
Team Role: Alumni
 
Join Date: Jan 2003
Rookie Year: 2001
Location: Stanford CA.
Posts: 514
Salik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud of
Send a message via AIM to Salik Syed
Re: Number of liines of code in user_routines.c

So assuming some one uses a very inefficient coding style i.e something like this:
Code:
int values[3];
for(int i =0; i<=2; i ++)
{
    switch i
    case 0:
    values[0] = 0;

    case 1:
    values[1] = 0;

    case 2:
    values[2] = 0;
}
versus:
Code:
for (int i =0; i<=2, i++)
{
     values[i] = 0;
}
The modern compiler should still spit out the same machine code correct?
__________________
Team 701