Thread: Incorrect statement in the tutorial

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    387

    Incorrect statement in the tutorial

    Hello, haven't been here in a few years, but I was just browsing through the C Tutorials and noticed that in this one: http://www.cprogramming.com/tutorial/c/lesson9.html people are instructed to use the new[] and delete[] operators. As far as I know, these were not introduced until C++. I think this article should be edited to use malloc() and free()

    (Sorry if this is posted in the wrong section, couldn't seem to find one appropriate for it)
    "There are three kinds of people in the world...
    Those that can count and those that can't."

  2. #2
    Registered User
    Join Date
    Oct 2004
    Posts
    151
    That looks to have mostly been copypasta'd from http://www.cprogramming.com/tutorial/lesson9.html, and didn't undergo a too rigourous editing job.
    Last edited by zx-1; 08-25-2006 at 03:45 AM.
    System: Debian Sid and FreeBSD 7.0. Both with GCC 4.3.

    Useful resources:
    comp.lang.c FAQ | C++ FQA Lite

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Using while loop for if statement.
    By Galens in forum C++ Programming
    Replies: 5
    Last Post: 10-03-2008, 03:14 PM
  2. Usefulness of the "else if" statement
    By gn17 in forum C Programming
    Replies: 7
    Last Post: 08-12-2007, 05:19 AM
  3. Switch statement
    By beene in forum C++ Programming
    Replies: 21
    Last Post: 07-01-2007, 08:13 AM
  4. having trouble understanding this statement
    By kes103 in forum C++ Programming
    Replies: 2
    Last Post: 10-03-2003, 09:00 AM
  5. Uh-oh! I am having a major switch problem!
    By goodn in forum C Programming
    Replies: 4
    Last Post: 11-01-2001, 04:49 PM