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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:00
What is a society that has moved to the internet rather than relying on physical media called
Answers: 2
question
Computers and Technology, 23.06.2019 00:20
The open systems interconnection (osi) reference model: defines standards for many aspects of computing and communications within a network. is a generic description for how computers use multiple layers of protocol rules to communicate across a network. defines standards for wireless local area network (wlan) communication protocols. details the advantages and disadvantages of various basic network cabling options.
Answers: 1
question
Computers and Technology, 23.06.2019 01:30
Negative methods of behavior correction include all but this: sarcasm verbal abuse setting an example for proper behavior humiliation
Answers: 1
question
Computers and Technology, 23.06.2019 06:00
How can a user delete a drawing object
Answers: 1
You know the right answer?
Create an array of MY_STRING handles with 100 elements. Initialize each element of the array to NULL...
Questions