A "wrong type" warning

Discussion in 'C' started by zel, Sep 7, 2010.

  1. zel

    zel New Member

    Joined:
    Sep 7, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    I am writing a programme..and it's so simple but I get this warning all the time.

    warning format ‘ d’ expects type ‘int ’ but argument 2 has type ‘char *’

    What could have gone wrong?
     
  2. go4expert

    go4expert Moderator

    Joined:
    Aug 3, 2004
    Messages:
    306
    Likes Received:
    9
    Trophy Points:
    0
    You are passing a function argument as char* where as function expects integer in the parameter.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice