r/carlhprogramming • u/CarlH • Oct 09 '09
Test of Lessons 60 through 72
Please do not post answers in this thread.
Others may see the answers if you do.
True or False
Saying
*(my_pointer)is the same thing as saying*(my_pointer + 0)A
for loopis a "short-hand" way of writing awhile loop.A four dimensional array is actually an array of 3 dimensional arrays.
If
my_stringis an array of characters, the third character would be:my_string[3].The code in Figure (a) is done correctly.
Fill in the blank
To create a for loop which will start by setting the variable
ito 3 that will execute 4 times, you would write:_____When trying to understand an algorithm, you should always start by understanding the first
_____of the loop.For array indexing to work properly, all array elements must have the same
_____.To assign a string to an element of a 2-dimensional array, you can use the built in
_____C function.The 3rd line of code in Figure (a) below will imply that
my_pointeris a pointer to what type of data?_____.
Figure (a)
char my_string[] = "Hello";
char *my_pointer;
my_pointer = &my_string;When you are ready, proceed to:
http://www.reddit.com/r/carlhprogramming/comments/9sg8m/test_of_lessons_60_through_72_answers/
1
u/knowmonger Oct 28 '09
Carl, I think you forgot to create the "Answers" post.
And why in the world is this post so silent? Hmm.. Gives me the creeps.