Pointer arithmetic

This is a discussion on Pointer arithmetic within the C Programming forums, part of the General Programming Boards category; Hi, I was reading c modern approach, in 11th chapter's Q&A I read that C pointers can store address in ...

  1. #1
    Registered User
    Join Date
    Sep 2011
    Posts
    28

    Pointer arithmetic

    Hi,

    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 ?

    Thanks

  2. #2
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    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, 02: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, 11:56 AM
  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

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