Thread: Really confused on how to attack this question

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Feb 2010
    Posts
    9

    Really confused on how to attack this question

    Hello everyone, im preparing for my first c exam and going through some practice questions.

    Display the appropriate code to reset to 0 the middle two bits of variable x who type is unsigned char.

    Im really confused on how to start. Im assuming that i need to convert the variable x into binary, and then use some-type of bit operator to shift through the code and replace the appropriate values. Any suggestions would be appreciated, thanks.
    Last edited by purplehaze; 02-28-2010 at 08:43 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. another do while question
    By kbpsu in forum C++ Programming
    Replies: 3
    Last Post: 03-23-2009, 12:14 PM
  2. Design layer question
    By mdoland in forum C# Programming
    Replies: 0
    Last Post: 10-19-2007, 04:22 AM
  3. Exam Question - Possible Mistake?
    By Richie T in forum C++ Programming
    Replies: 15
    Last Post: 05-08-2006, 03:44 PM
  4. another exercise question
    By luigi40 in forum C# Programming
    Replies: 3
    Last Post: 11-28-2005, 03:52 PM
  5. Extern Question, really confused
    By SourceCode in forum C Programming
    Replies: 10
    Last Post: 03-26-2003, 11:11 PM