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

This is a discussion on i"m stuck question please help!!!!!!!! within the C++ Programming forums, part of the General Programming Boards category; Please give the corresponding snapshots of the memory after each of the following sets of statements is executed. use ? ...

  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
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,655
    Do. Your. Own. Homework.

  3. #3
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,211
    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, 01:14 PM
  2. Question about pointers #2
    By maxhavoc in forum C++ Programming
    Replies: 28
    Last Post: 06-21-2004, 01:52 PM
  3. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 10: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

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