subject

Create an array of MY_STRING handles with 100 elements. Initialize each element of the array to NULL. Use your init_c_string function to initialize the first element of the array to the string "COPY ME!". Write a for loop that uses your assignment function to copy the first string into every other element of the array. Destroy every element of the array with a for loop calling destroy on each element but use string_insertion to print each element to the screen just before deleting it. TA CHECKPOINT 2: Demonstrate to your TA that your program has no memory leaks using valgrind. Demonstrate that by commenting out the for loop that destroys your strings you can create a memory leak big enough to hold 100 copies of the "COPY ME!" string.

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 23:30, yasarhan2
Match the following errors with their definitions. a. #name b. #value c. #ref d. 1. when a formula produces output that is too lengthy to fit in the spreadsheet cell 2. when you enter an invalid cell reference in a formula 3. when you type text in cells that accept numeric data 4. when you type in a cell reference that doesn’t exist
Answers: 1
image
Computers and Technology, 24.06.2019 00:50, JakeCline
Which of the following is not a key player in the sale of travel products?
Answers: 2
image
Computers and Technology, 24.06.2019 03:00, paguy12
What is one potential problem associated with an organization purchasing new technology early in its lifecycle
Answers: 1
image
Computers and Technology, 24.06.2019 17:00, mrsrobinson1014
What are some examples of what can be changed through options available in the font dialog box? check all that apply. font family italicizing bolding pasting drop shadow cutting character spacing special symbols
Answers: 2
You know the right answer?
Create an array of MY_STRING handles with 100 elements. Initialize each element of the array to NULL...

Questions in other subjects:

Konu
Mathematics, 17.10.2020 04:01