Thread: left shifting signed quantity

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    DESTINY BEN10's Avatar
    Join Date
    Jul 2008
    Location
    in front of my computer
    Posts
    804

    left shifting signed quantity

    hello all,

    this is a quote from K&R pg no. 49
    right shifting a signed quantity will fill with sign bits ("arithmetic bits") on some machines and with 0-bits ("logical shift") on others.
    is this true for left shift also.is left shifting a signed quantity also machine dependent.
    also i wanna know how can i determine whether my system uses ASCII encoding or EBCDIC or some else encoding.my OS is windows xp.
    Thank you
    Last edited by BEN10; 03-31-2009 at 10:38 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. OpenGL, loading BMP Textures?
    By Zeusbwr in forum Game Programming
    Replies: 12
    Last Post: 12-09-2004, 05:16 PM
  2. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  3. pointer to array of objects of struct
    By undisputed007 in forum C++ Programming
    Replies: 12
    Last Post: 03-02-2004, 04:49 AM
  4. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM
  5. Please help me
    By teedee46 in forum C++ Programming
    Replies: 9
    Last Post: 05-06-2002, 11:28 PM