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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/13/06 17:12
Read: times


 
#107322 - I don't like it
Responding to: ???'s previous message
Eymard Gorman said:
This is where i learned C hope it helps.
http://staffweb.itsligo.ie/staff/jro...ogramming/

Seems a bit sloppy to be; eg, under 'Data Types' he is confusing the data types themselves with the notation used for constants of those types!

the statment
If the variable is for storing a person's first name, you should call the variable firstName. Notice in the second example the use of two words, squashed together as one. This is a variable naming practice that is becoming very popular and should be used for clarity.

Is far too prescriptive, and we could have an entire flame war on the pros & cons of different naming conventions...!

the statement
Note: every line of C code must end in a semicolon (;). We will discuss why at a later date.

Is just plain wrong!
The semicolon is a statement terminator in 'C' - not a line terminator!

In the "Examples of erroneous C code", the following would not be reported as errors by the compiler (just warnings):
c = "abc";   
c = "f";




List of 18 messages in thread
TopicAuthorDate
To start learning C            01/01/70 00:00      
   there are many but let us C is good one            01/01/70 00:00      
      I really like            01/01/70 00:00      
   Hope this helps            01/01/70 00:00      
      This will surely help            01/01/70 00:00      
         Looks familiar            01/01/70 00:00      
            you forgot (C) thus not copyrighted :)            01/01/70 00:00      
               I thought...            01/01/70 00:00      
      I don't like it            01/01/70 00:00      
   fast?            01/01/70 00:00      
      Pont: Compiler-specific            01/01/70 00:00      
         this is quite a good website            01/01/70 00:00      
   if you can still find it            01/01/70 00:00      
   C Stuff            01/01/70 00:00      
   You want it fast            01/01/70 00:00      
   Try this web site            01/01/70 00:00      
      Thanks for all the info "Learning C "            01/01/70 00:00      
   Thanks to all for replying for "C"            01/01/70 00:00      

Back to Subject List