Thread: Prototypes or no?

  1. #16
    Registered User
    Join Date
    Oct 2006
    Posts
    250
    Is the period key on your keyboard broke or something?

  2. #17
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    Learning to program isn't a start-to-finish process. Think of how much is involved in just a simple "hello, world" program. There's at least half a dozen concepts staring at you right there. But the book can't go into complete detail about each of those right off the bat. Your head would spin.

    Functions are going to be used in the exercises before they're taught to you in-depth.
    If you understand what you're doing, you're not learning anything.

  3. #18
    Registered User
    Join Date
    Oct 2001
    Posts
    2,934
    >What is this call by value, what do they mean it stores memory in an imaginary value!
    I think you mean pass by value. In C all function arguments are passed by value, which means a copy of the argument is passed to the function. This means if an argument is changed in the function, the change will only be seen within the function. Back in the calling function the argument will retain its original (unmodified) value.

    Some languages also have call by reference, which means the the argument's address is passed.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Function prototypes - needed yes or no?
    By steve1_rm in forum C Programming
    Replies: 4
    Last Post: 02-20-2009, 08:39 AM
  2. Class prototypes
    By m00se123 in forum C++ Programming
    Replies: 4
    Last Post: 11-08-2002, 03:06 AM
  3. Is there a difference between these prototypes?
    By Captain Penguin in forum C++ Programming
    Replies: 5
    Last Post: 06-11-2002, 10:28 AM
  4. function prototypes and call statements.
    By mutu in forum C Programming
    Replies: 0
    Last Post: 04-05-2002, 12:39 AM
  5. Default values in function prototypes
    By wdicks in forum C Programming
    Replies: 13
    Last Post: 10-10-2001, 01:06 AM