Thread: Pointer arithmetic

  1. #1
    Registered User
    Join Date
    Sep 2011

    Pointer arithmetic


    I was reading c modern approach, in 11th chapter's Q&A I read that C pointers can store address in diffrent formats depending upon the way in which particular computer's memory is divided.My question is that suppose some computer has word division instead of byte division in memory then how will the pointer arithmetic will behave, will there be any changes ?


  2. #2
    Join Date
    Aug 2010
    Ontario Canada
    You should reasonably expect that the variable types char, int, long int, etc. will be adjusted in the compiler for that machine/operating system.

    The only time this should be a real concern is in communciation between machines of different types...Endianness - Wikipedia, the free encyclopedia

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Pointer Arithmetic
    By taurus in forum C Programming
    Replies: 5
    Last Post: 11-14-2008, 03:28 AM
  2. Pointer arithmetic
    By depietro in forum C Programming
    Replies: 13
    Last Post: 03-29-2007, 06:03 AM
  3. pointer arithmetic
    By xyz4rm in forum C Programming
    Replies: 3
    Last Post: 03-21-2004, 12:56 PM
  4. pointer arithmetic
    By Unregistered in forum C Programming
    Replies: 2
    Last Post: 10-04-2001, 06:45 PM
  5. pointer arithmetic
    By new to C in forum C Programming
    Replies: 3
    Last Post: 09-19-2001, 10:06 PM