Answer:
Following are the code in the C programming Language.
//define function
void duplicate(char*argv, char**result) {
//set and initialize the variable to 0
int c = 0;
//set and initialize the char type pointer variable
char** t = argv;
//set the while loop
while(t){
//increment by 1
c++;
//increment by 1
t++;
}
//set malloc function in the pointer variable
result= malloc(sizeof(char)*(c+1));
//set the for loop
for(int i = 0; i < c; i++) {
//set malloc function in the pointer
(*result)[i] = malloc(strlen(argv[i])+1);
//copy the character from memory
memcpy(argv[i], (*result)[i], strlen(argv[i])+1)
;
}
//initialize null in the pointer
(*result)[i] = NULL;
}
Explanation:
In the following code, we define function "duplicate()" and pass two character type pointer arguments "*argv" and "**result" and inside the function.
- Set an integer type variable "c" and initialize to 0.
- Set character type pointer variable "t" and initialize the value of pointer variable "argv".
- Set the while loop and increment in the variable "c" and "t" by 1.
- Set the malloc function in the pointer variable "result".
- Set the for loop to copy the character from the memory.
- Finally, initialize the pointer variable "result" to NULL.
Answer:
The owls population increased by 13 in one year
Explanation:
The given data on the owl population are as follows;
The number of new owls born = 20 (positive increase in population)
The number of owls that die = 10 (negative decrease in population)
The number of owls that enter the forest = 5 (positive increase in population)
The number of owls that left the forest = 2 (negative decrease in population)
Let 'w' represent the number of new owls born, let 'x' represent the number of owls that die, let 'y' represent the number of owls that enter the forest and let 'z' represent the number of owls that left the forest, we get;
The change in population, ΔP = w - x + y - z
By plugging in the values, we get;
ΔP = 20 - 10 + 5 - 2 = 13
The change in the population of owls in one year is an increase in 13 owls.
I believe photoshop since it has elements of productivity
Answer:A
Explanation:
Copy right is an intellectual property right granted by the government that gives the owner exclusive rights to use, with some limited exception, original expressive work.
The quality consideration that this laptop did not meet is: fitness for use.
<h3>What is a laptop?</h3>
A laptop can be defined as a small, portable computer that is embedded with a keyboard and mousepad, and it is usually light enough to be placed on an end user's lap while he or she is working.
In this scenario, the laptop you purchased didn't have preinstalled software applications that you could use right away. Thus, we can conclude that the laptop is not <u>fit for use</u> because it didn't meet the quality consideration.
Read more on a laptop here: brainly.com/question/26021194