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:
Press the Shift key, then press the Home key.
Explanation:
This is because Home key take you to a beginning of a line and shift selects.
Have a nice day!
Please mark as brainiest if this helped you! :)
In the dental industry, light-activated adhesives have been used for decades to help adhere braces to teeth as well as being used in other dental procedures. These adhesives are one-part translucent polymers that cure and harden when exposed to specific light spectrum. Many of these took up to 30 seconds to cure. New technology brings LED blue light curing which uses blue LED with UV light to cure and harden a light-activated adhesive in 3-5 seconds. Which result below would NOT be an advantage of this new technology?<u> A)There is a higher up-front expense.</u> B)Could be used in other areas such as sealing cracked pipes. C)No filters or cooling fan required due to quick curing and low heat emission. D)There is a major time savings when using the faster high–intensity curing lights.