Please Help To......................

This is a discussion on Please Help To...................... within the C Programming forums, part of the General Programming Boards category; PLEASE HELP ME TO SOLVE THIS QUESTIONS ??????????? Q:1 Left Shifting an unsigned integer by 1 bit is equivalent to ...

  1. #1
    USA
    USA is offline
    Registered User
    Join Date
    Sep 2001
    Posts
    1

    Unhappy Please Help To......................

    PLEASE HELP ME TO SOLVE THIS QUESTIONS ???????????

    Q:1 Left Shifting an unsigned integer by 1 bit is equivalent to multipling the value by 2.Write a function powerof2 that takes two integer arguments num and power and calculates: num*2^power.
    Q:2 Write a program to store three variables employee_number(9bits), gender_of_the_employee (1bit) and employee_skills (6 bits) in a short integer variable.Use pack and unpack function .

    Q:3 Write a program that reverses the order of the bits in an unsigned integer value .The program should take an (unsigned) integer value and display the same bit wise .Then reverses the bit pattern and print the reversed bit and its integer value.

    Q:4 Print all ASCII characters,their corrsponding integer value and bit wise printing of this integer value.

  2. #2
    Registered User biosx's Avatar
    Join Date
    Aug 2001
    Posts
    230
    See homework post..

  3. #3
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    At least TRY to solve the problem on your own, if you actually have code that you can't get to work then come and ask a question.

  4. #4
    Registered User Generator's Avatar
    Join Date
    Aug 2001
    Posts
    238
    Ill do your homework for you for a hundred dollars american per line of code...

Popular pages Recent additions subscribe to a feed

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