is it a legal signature??

This is a discussion on is it a legal signature?? within the C Programming forums, part of the General Programming Boards category; int getMin(int eof[],vote [],int *);...

  1. #1
    Banned
    Join Date
    Oct 2008
    Posts
    1,535

    is it a legal signature??

    int getMin(int eof[],vote [],int *);

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    No. vote has no type.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Registered User
    Join Date
    Oct 2008
    Posts
    1,262
    Quote Originally Posted by matsp View Post
    No. vote has no type.

    --
    Mats
    Unless vote is a type, I think. Then it is legal.

  4. #4
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by EVOEx View Post
    Unless vote is a type, I think. Then it is legal.
    True.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  5. #5
    Banned
    Join Date
    Oct 2008
    Posts
    1,535
    vote is a type
    but how to use the parameter of type vote
    if there is no name

  6. #6
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,409
    Give the parameter a name in the function definition.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  7. #7
    DESTINY BEN10's Avatar
    Join Date
    Jul 2008
    Location
    in front of my computer
    Posts
    804
    Quote Originally Posted by transgalactic2 View Post
    vote is a type
    but how to use the parameter of type vote
    if there is no name
    you can use typedef.for eg
    Code:
    typedef int vote;
    then use vote as an int.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Forum signature banners
    By Akkernight in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 04-04-2009, 03:31 AM
  2. What is legal and what is illegal?
    By dlwlsdn in forum C Programming
    Replies: 3
    Last Post: 11-14-2008, 11:48 AM
  3. Signature Image - 'Invalid File'
    By Tonto in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 04-16-2007, 10:32 PM
  4. Limitless signature?
    By zahid in forum A Brief History of Cprogramming.com
    Replies: 21
    Last Post: 12-30-2002, 09:32 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21