Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by slakr

  1. slakr

    C programming quiz, too difficult?

    marsd, Since my post in this forum about the cquiz, I have recieved many quiz sumbissions. About 80% get every question correct, about 10% miss a few things (question 5) and the rest fail. Those who fail, maybe getting a couple questions correct, do not have the "basic" skills needed for the...
  2. slakr

    C programming quiz, too difficult?

    sorry, I meant while( (0)-- > 0) {...} /sLaKr
  3. slakr

    C programming quiz, too difficult?

    >>The primary test is to spot the infinite loop. It doesn't actually occur though. Your program doesn't enter an infinite loop. The last condition checked is while( (0)++ > 0){...} Since you are post-incrementing, when the while breaks out the value of `i` is 4294967295. /sLaKr
  4. slakr

    C programming quiz, too difficult?

    Salem, I can't find 4 things wrong with your "print hello world 10 times" program. I find: 1. no return for main 2. no stdio include 3. If we are following the specs of my quiz, you are using a C++ style comment Other than that, the program works as advertised. You may have wanted the...
  5. slakr

    C programming quiz, too difficult?

    >>allowed/expected GUI toolkits and thread APIs Well, I only say you have to follow the C89 spec. Meaning, no fancy C99 tricks. Maybe I should put a blurb on top saying any toolkit can be used. As for the smartass, you are correct. The answer is, the question does not specify that that it...
  6. slakr

    C programming quiz, too difficult?

    My company is looking for a C developer and we have created a quiz. We have gotton some responses saying the quiz was too difficult. Other than the programmers I work with, I don't know any programmers to ask if the quiz is really too hard. So, I thought if I ask some anonymous C coders...

Part and Inventory Search

Back
Top