Starting " C "

Reply

Join Date: Jun 2007
Posts: 20
Reputation: gaowei is an unknown quantity at this point 
Solved Threads: 1
gaowei gaowei is offline Offline
Newbie Poster

Re: Starting " C "

 
0
  #31
Sep 18th, 2008
These links are good. I didn't know it so it is useful for me. Thanks!
Good luck!
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 11
Reputation: kymarscheng is an unknown quantity at this point 
Solved Threads: 0
kymarscheng kymarscheng is offline Offline
Newbie Poster

Re: Starting " C "

 
0
  #32
Oct 30th, 2008
Great links~ They are all very useful~ Thanks!
Reply With Quote Quick reply to this message  
Join Date: May 2009
Posts: 1
Reputation: ugurkazdal is an unknown quantity at this point 
Solved Threads: 0
ugurkazdal ugurkazdal is offline Offline
Newbie Poster

Re: Starting " C "

 
0
  #33
May 2nd, 2009
all these are awesome .. thanks .
Reply With Quote Quick reply to this message  
Join Date: May 2009
Posts: 10
Reputation: patria987 is an unknown quantity at this point 
Solved Threads: 0
patria987 patria987 is offline Offline
Newbie Poster

Re: Starting " C "

 
0
  #34
May 28th, 2009
the links are helpful to the newbies but definitely should try out practically otherwise the facts wont be clear n definite needs lots of practise to become an expert in C.
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 5
Reputation: shric will become famous soon enough shric will become famous soon enough 
Solved Threads: 1
shric's Avatar
shric shric is offline Offline
Newbie Poster

Re: Starting " C "

 
3
  #35
Jul 24th, 2009
Can you please remove the HowStuffWorks link from the original post or better yet point out that it's horrible. It is full of information that ranges from misleading to outright incorrect, which could be harmful to someone learning C. An except from the section on Using Pointers with Arrays for example:
  1. #define MAX 10
  2. /* snip */
  3. int a[MAX];
  4. int b[MAX];
Arrays in C are unusual in that variables a and b are not, technically, arrays themselves. Instead they are permanent pointers to arrays. a and b permanently point to the first elements of their respective arrays -- they hold the addresses of a[0] and b[0] respectively. Since they are permanent pointers you cannot change their addresses. The statement a=b; therefore does not work.
This of course is blatantly incorrect. The author of the article seems to be confused by the fact that a and b are converted to a pointer to their first elements when applied to an operator other than sizeof and unary &. This does not make them pointers or "permanent pointers" (ref. ISO/IEC 9899:1999 6.3.2.1#3)

There are many other examples, including but not limited to:
  • Variable Types:
    An int is a 4-byte integer value. A float is a 4-byte floating point value. A char is a 1-byte single character (like "a" or "3"). A string is declared as an array of characters.

    There are a number of derivative types:

    double (8-byte floating point value)
    short (2-byte integer)
    unsigned short or unsigned int (positive integers, no sign bit)
    Here, the author apparently thinks C is defined in terms of the sizes of types that happen to be on his implementation. To say "a string is declared as an array of characters" is to imply that any array of characters is a string, and of course the criteria for a string includes being null terminated. There are numerous other occurrences throughout the article of the author assuming certain implementation defined values and asserting they are always those values.
  • Mostly main will be correctly defined to return int, but sometimes the good old horrible "void main" pops up.
  • Uses gets() without explaining that it's harmful, let alone why. Uses fgets() later, but doesn't mention using it instead of gets().
  • casts the return value of malloc. This is a controversial issue.
  • Uses the term "pointer to array" when referring to an a pointer to the first element of the array. This example demonstrates the difference:
    1. int a[42];
    2. int *p = a; /* p is a pointer to a[0] */
    3. int (*q)[42] = &a; /* q is a pointer to the [entire] array */
  • For scanf, it says you "MUST put & in front of the variable used in scanf" but of course this would be wrong for %s, and it doesn't cover this or why.

If I'm accused of nitpicking, I certainly didn't have much trouble finding errors. Every page I looked at seems to have something dubious on it. You might also argue that the above issues are technicalities and beyond the scope of a beginner's C tutorial. This well may be the case, but then perhaps there should be some footnotes explaining this. It doesn't excuse it, and I'm sure I could produce another 10-20 examples if I had the time.
Reply With Quote Quick reply to this message  
Join Date: Dec 2005
Posts: 5,850
Reputation: Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute 
Solved Threads: 749
Team Colleague
Salem's Avatar
Salem Salem is offline Offline
Void main'ers are DOOMed

Re: Starting " C "

 
0
  #36
Jul 24th, 2009
Agrees. The first half isn't too shabby.
But it looks for all the world like the 2nd half was written by someone else without a clue.
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 1
Reputation: tsrajkumar is an unknown quantity at this point 
Solved Threads: 0
tsrajkumar tsrajkumar is offline Offline
Newbie Poster

Re: Starting " C "

 
0
  #37
Jul 25th, 2009
thanks for all these links..
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 2
Reputation: rashmgup is an unknown quantity at this point 
Solved Threads: 0
rashmgup rashmgup is offline Offline
Newbie Poster

Re: Starting " C "

 
0
  #38
Aug 3rd, 2009
Nice effort !!
Reply With Quote Quick reply to this message  
Join Date: Sep 2009
Posts: 3
Reputation: johnfernandez is an unknown quantity at this point 
Solved Threads: 0
johnfernandez johnfernandez is offline Offline
Newbie Poster

Re: Starting " C "

 
0
  #39
Sep 11th, 2009
Hi...
I read your post.It is really wonderful.The links that you provided are very nice and useful.With the help of this it becomes very easy to work with C.Many of your C tutorials help to solve programming errors and functions.Thanks for the information...
Reply With Quote Quick reply to this message  
Join Date: Sep 2009
Posts: 76
Reputation: Gaiety is an unknown quantity at this point 
Solved Threads: 2
Gaiety's Avatar
Gaiety Gaiety is offline Offline
Junior Poster in Training

Re: Starting " C "

 
0
  #40
Oct 5th, 2009
Originally Posted by ~s.o.s~ View Post
Based on the request by Mr. Jamshid i thought why not just start the useful links and tutorials for novice C programmers so they dont have to do a lot of GOOGLE like the one present in Python Forums.

If the moderators like the concept here they can sticky this or delete this post if they dont like it.

If this thread manages to stay, anyone intrested can post any important links or resources they know of and can start a new thread if they have any doubts.

List of free compilers and IDE

1) Codeblocks IDE integrated with MINGW compiler can be downloaded at http://www.codeblocks.org/downloads.shtml

2) Bloodshed Dev C++ IDE with MINGW port of GCC as its compiler at http://www.bloodshed.net/devcpp.html

3) Visual Studio Express Edition

4) Pelles C IDE

List of Tutorials

C programming tutorials 4th edition
http://www.iu.hio.no/~mark/CTutorial/CTutorial.html#Preface

C standard function reference
http://www.cppreference.com
http://www.utas.edu.au/infosys/info/....html#Contents

Excellent site for free compilers, libraries, tutorials etc.
http://www.thefreecountry.com/docume...ferences.shtml

C programming Notes
http://www.eskimo.com/~scs/cclass/notes/sx1.html

Programmign in C
http://www.scit.wlv.ac.uk/~jphb/cbook/html/

Excellent site a must see for all newbies
http://www.cprogramming.com/tutorial.html
http://www.physics.drexel.edu/course..._tutorial.html

Link to many programming tutorials
http://www.programmingtutorials.com/c.aspx
http://www.freeprogrammingresources.com/ctutor.html
http://www.tutorialized.com/tutorials/C-and-Cpp/1
http://www.techtutorials.info/cgen.html
http://www.intelligentedu.com/newly_...raining/C.html
http://www.cyberdiem.com/vin/tutorials.html


Pointer and other topic specific resources
http://pweb.netcom.com/~tjensen/ptr/cpoint.htm
http://www.augustcouncil.com/~tgibson/tutorial/
http://www.newty.de/fpt/index.html

Advice and warnings for C
http://www.brainbell.com/tutors/c/Ad...arnings_for_C/

Interfacing ODBC and C
http://www.physics.drexel.edu/course..._tutorial.html


Waiting for the feedback of all the members and would be really happy if you would carry on adding more links to this thread so that a newbie would not have to search a lot on the net regarding how to start on C.

Regards
~s.o.s~


following site is not accessible its showing no authorization

Interfacing ODBC and C
http://www.physics.drexel.edu/course..._tutorial.html

i am plannig to add few more sites here, just checking what are all present here to avoid repetition.
Minds are like parachutes - they only work when they are open
Gaiety
Reply With Quote Quick reply to this message  
Reply

Message:



Similar Threads
Other Threads in the C Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC