Thread: Code is wrong but no idea why(rand+srand+conditional)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    The scanf is wrong. The &guess should not be in quotes.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  2. #2
    Registered User
    Join Date
    Mar 2023
    Posts
    2
    Thank you so much!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How does rand() and srand() together?
    By bos1234 in forum C Programming
    Replies: 2
    Last Post: 08-28-2013, 10:12 PM
  2. srand and rand
    By pobri19 in forum C++ Programming
    Replies: 4
    Last Post: 10-12-2008, 07:09 AM
  3. Rand and srand
    By JFonseka in forum C Programming
    Replies: 5
    Last Post: 02-26-2008, 10:36 PM
  4. srand() and rand()
    By Mr.Sellars in forum C++ Programming
    Replies: 3
    Last Post: 08-12-2007, 03:19 PM
  5. srand() or rand()???
    By bajanstar in forum C Programming
    Replies: 4
    Last Post: 03-04-2005, 12:58 PM

Tags for this Thread