mChoice

This is a discussion on mChoice within the C Programming forums, part of the General Programming Boards category; does anyone know what this means Run-Time Check Failure #3 - The variable 'mChoice' is being used without being initialized....

  1. #1
    Registered User
    Join Date
    Mar 2013
    Posts
    13

    mChoice

    does anyone know what this means

    Run-Time Check Failure #3 - The variable 'mChoice' is being used without being initialized.

  2. #2
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,657
    Initialized == given a value

  3. #3
    Registered User
    Join Date
    Oct 2006
    Posts
    2,590
    as I said in your other thread, your mistake is on line 22 of the code you originally posted. you didn't set the variable to anything. telling scanf to fill it with something can fail, and in that case, the value is still undefined.

  4. #4
    Registered User
    Join Date
    Mar 2013
    Posts
    13
    thanks for ur replys

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. mChoice
    By BretFlorida in forum C# Programming
    Replies: 3
    Last Post: 03-25-2013, 12:23 PM

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