Thread: strange behaviour

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #15
    Registered User
    Join Date
    Jul 2012
    Location
    Australia
    Posts
    242
    Quote Originally Posted by std10093 View Post
    Looking again at the post i show that
    cfanatic does not write void when the function has no parameters at all.(e.g. line 16 at post #1)

    I am bit of confused here.What should we do?Use void or not?
    Read the bottom of post #8 in this thread.

    every C learner's nightmare: linked lists

    EDIT: My function options() will have some parameters, but I don't know what the parameters are yet, that's why I left it blank. I suppose I should use "void" in the parameter list, but I was just lazy.
    Last edited by cfanatic; 09-28-2012 at 06:29 PM.
    IDE: Code::Blocks | Compiler Suite for Windows: TDM-GCC (MingW, gdb)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. strange behaviour
    By cfanatic in forum C Programming
    Replies: 2
    Last Post: 07-16-2012, 06:41 AM
  2. strange behaviour
    By cfanatic in forum C Programming
    Replies: 9
    Last Post: 07-13-2012, 10:41 PM
  3. Strange behaviour of GCC
    By BlackOps in forum C Programming
    Replies: 14
    Last Post: 07-29-2009, 06:44 PM
  4. strange behaviour.......
    By surdy in forum C Programming
    Replies: 2
    Last Post: 05-01-2004, 11:50 AM
  5. Strange behaviour
    By PrivatePanic in forum Windows Programming
    Replies: 11
    Last Post: 07-23-2002, 12:54 AM