Im only in 4th sorry i dont think i can help
Answer:
// function with memory leak
void func_to_show_mem_leak() {
int *pointer;
pointer = malloc(10 * sizeof(int));
*(pointer+3) = 99;}
// driver code
int main()
{
// Call the function
// to get the memory leak
func_to_show_mem_leak();
return 0; }
Explanation:
Memory leakage occurs when programmers allocates memory by using new keyword and forgets to deallocate the memory by using delete() function or delete[] operator. One of the most memory leakage occurs by using wrong delete operator.
The delete operator should be used to free a single allocated memory space, whereas the delete [] operator should be used to free an array of data values.
Answer:i do Eri's Quirk allows her to rewind an individual's body to a previous state. She has shown the ability to rewind someone's body to a point before they existed, which she accidentally did to her father.
Answer:
The ArrayList initial functionality is 5, there were 4 components.
Then, add 25 more elements by using add()calling 25 times So total number of elements after the completed operation would be 4 + 25= 29.
5th component will be introduced without calling ensureCapacity(); while adding 6th element-> ensureCapacity(2* 5+ 1) it will call, making the capacity 11.
So ArrayList's capacity will be 11.
Next 7th to 11th components will also be added automatically once the 12th element is added, it will name ensureCapacity(2* 11+ 1) and make the capacity 23.
While adding 24th dimension, ensureCapacity(2* 23+ 1) will be called again and this will make the capacity 47.
There will therefore be 3 (three) calls to ensure the feature Ability).
Elements of Rest 25th to 29th will be added seamlessly as ability becomes 47.
Answer:
Development & implementation phase
Explanation:
There are mainly six stages of SDLC, which are as follows:
1. Planning: Planning is the first step in app development, where the developer preplans every aspect of the software.
2. Analysis: After planning, the developer analyzes further requirements to develop the software as per planning.
3. Design: After planning and analysis, the developer makes the design which is the main architecture of the software.
4. Development & implementation: When the developer completes the design, the development phase comes in where the data is coded and recorded as per requirement and after development, implementation takes place to see if software functions properly or not.
5. Testing: Testing mainly tests the programs to check for any errors or bugs.
6. Maintenance: When the software is developed successfully, then time to time maintenance and updation of the software takes place to maintain and upgrade its working.
Hence according to the scenario, development & implementation phase is the right answer.