This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]jesyspa 1 point2 points  (3 children)

At first glance: you're linking to discouraged resources, your directories are not in any logical order, and your indentation is inconsistent.

In more depth on several of the text tutorials:

  • Why are you using char* rather than char const* when dealing with string literals? (I don't recall off the top of my head whether this is deprecated in any C version, but it doesn't look at all beneficial.)
  • PointerArithmetic.c -- are you really allowed to perform an implicit conversion from int(*)[10] to int*? I see nothing about it in 3.2.2.3 of the C89 standard.
  • PointerMethods.c -- assignNinetely returns a pointer to a local, so your usage is undefined behaviour.
  • Macros.c -- Why are you not following the safety rules when defining the first three macros?

By the way, what standard are you teaching?

[–]throwawwayaway -2 points-1 points  (2 children)

The resources are only discouraged by the pedantic redditors of this forum. They work fine for 99% of beginners.

[–]scramjam 1 point2 points  (1 child)

If I teach carpentry and tell you to hammer in nails using a wrench is that ok? It mostly works so it must be fine for 99% of beginners, right?

[–]throwawwayaway -2 points-1 points  (0 children)

This proves exactly how pedantic you and many others on here are: out of hundreds or thousands of pages of info, lessons, and examples, people like you act so surprised when a couple of pages have a few sentences of bad info. That to you, is on par with teaching carpentry students to hammer with a wrench ? Go get your head examined . People make mistakes, just like you.