Answer:
c. double triple(float n) { return (3 * n); }
Explanation:
In option a print is used to print integer.While printf is used in C to print something.
In option b there is no * operator between s s s it should be s*s*s.So it will give error.
In option d there is also no multiply operator * in between 3.14 2 r it should be 3.14*2*r.
So we can say that option c is error free.
Answer: A- the antlers and horns are structural adaptations. The fighting is a behavioral adaptation.
Antlers and horns are physical adaptations that some mammals have acquired over time. However, fighting is not a physical feature but a behavioral adaptation used to beat other males during mating season.
Explanation:
Keep your eyes on the text and aim to make no mistakes
Answer:
#include <iostream>//including libraries
using namespace std;
int main()
{
int arr[6] = { 0,1,2,3,4,5 };//make sure size of arr is 1 less than secArr
int secArr[7];//second array (1 element bigger)
for (int i = 0;i < 6;i++)//looping through each element (6 times)
{
secArr[i + 1] = arr[i];//transferring elements to second array and shifting by 1 cell
cout << secArr[i + 1] << endl;//printing elements of second array
}
return 0;//terminating program
}
Explanation:
The array size can range from any number. just make sure to keep arr one less than secArr. This is because we need the room for the extra element. This task is to help you understand how array work and how to parse through them using loops. For loops are the best for this task because even if you think intuitively, they work for as long as there are items in the array. and you can define the size yourself.