Thread: problem for amateur lol

  1. #1
    Registered User
    Join Date
    Oct 2007
    Posts
    4

    problem for amateur lol

    hello, im very new to programming and have brought the book programming in c the third edition but am facing big troubles being a beginner.
    i was wondering if you could help me identify the problem in the following statement and provide me with some indication why the statement is incorrect.

    scanf("d",value);

    thanks

  2. #2
    Dr Dipshi++ mike_g's Avatar
    Join Date
    Oct 2006
    Location
    On me hyperplane
    Posts
    1,218
    It wants to be: scanf("%d",&value);

  3. #3
    Registered User
    Join Date
    Oct 2007
    Posts
    4
    thanks for the help. but why is this

  4. #4
    Registered User
    Join Date
    Oct 2007
    Posts
    2
    because % ist da filler for the variable value and the & for the variable value is the adressfield of the value

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Memory problem with Borland C 3.1
    By AZ1699 in forum C Programming
    Replies: 16
    Last Post: 11-16-2007, 11:22 AM
  2. Someone having same problem with Code Block?
    By ofayto in forum C++ Programming
    Replies: 1
    Last Post: 07-12-2007, 08:38 AM
  3. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 02:51 PM
  4. WS_POPUP, continuation of old problem
    By blurrymadness in forum Windows Programming
    Replies: 1
    Last Post: 04-20-2007, 06:54 PM
  5. beginner problem
    By The_Nymph in forum C Programming
    Replies: 4
    Last Post: 03-05-2002, 05:46 PM