Thread: i"m stuck question please help!!!!!!!!

  1. #1
    Registered User
    Join Date
    Jul 2008
    Posts
    3

    Question i"m stuck question please help!!!!!!!!

    Please give the corresponding snapshots of the memory after each of the following sets of statements is executed. use ? to indicate an array of elements that is not initialized.

    A.

    int t [5] ;
    . . .
    t [5] = 5 ;
    for ( int k=0 ; k<4 ; k++)
    t [ k + 1 ] = t [ k ] + 3 ;

    B.

    char s [] = "Hello" , t[] = { ' a ' , ' e ' , ' i ' , ' o ' , ' u ' } , name [ 10 ] ;
    strcpy ( name , " Sue " ) ;

  2. #2
    Registered User
    Join Date
    Dec 2007
    Posts
    2,675
    Do. Your. Own. Homework.

  3. #3
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,210
    Quote Originally Posted by rags_to_riches View Post
    Do. Your. Own. Homework.
    QFT.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. another do while question
    By kbpsu in forum C++ Programming
    Replies: 3
    Last Post: 03-23-2009, 12:14 PM
  2. Question about pointers #2
    By maxhavoc in forum C++ Programming
    Replies: 28
    Last Post: 06-21-2004, 12:52 PM
  3. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM
  4. opengl DC question
    By SAMSAM in forum Game Programming
    Replies: 6
    Last Post: 02-26-2003, 09:22 PM
  5. Question about linked lists.
    By cheeisme123 in forum C++ Programming
    Replies: 6
    Last Post: 02-25-2003, 01:36 PM