Thread: Arrays and addition

  1. #1
    Registered User
    Join Date
    Nov 2019
    Posts
    3

    Arrays and addition

    I have 2 arrays
    Code:
    Int Tab[5] = {23,47,10,7,3}
    Char *S[8] = {"SOMETEXT"}
    The array start adresses are
    Tab == 0x200
    S==0x800
    What would be the value of tab+3 and s+3?
    Its from a book but it doesnt really explain well.

  2. #2
    Registered User
    Join Date
    May 2010
    Posts
    4,633
    What would be the value of tab+3 and s+3?
    What do you think the values should be?

    Did you plug the snippet into a program and print the values?

    Are you sure that you copied the code correctly?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. matrix addition program using arrays
    By suryak in forum C Programming
    Replies: 6
    Last Post: 04-10-2011, 06:37 AM
  2. New addition
    By RoD in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 11-06-2004, 08:41 PM
  3. Addition to FAQ
    By sigma in forum C Programming
    Replies: 2
    Last Post: 04-01-2002, 12:20 PM
  4. Help - Addition
    By Billye Scott in forum C++ Programming
    Replies: 2
    Last Post: 03-04-2002, 06:52 PM
  5. addition
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 01-19-2002, 07:53 AM

Tags for this Thread