Answer:
void reverse(char dest[], char source[], int size)
{
for(int i=0;i<size;i++)//using for loop.
{
dest[i]=source[i];//assigning each element of source array to dest array.
}
int s=0,e=size-1;//initializing two elements s with 0 and e with size -1.
while(s<e){
char t=des[s]; //SWAPPING
dest[s]=dest[e]; //SWAPPING
dest[e]=t; //SWAPPING
s++;
e--;
}
}
Explanation:
I have used while loop to reverse the array.I have initialize two integer variables s and e with 0 and size-1.Looping until s becomes greater than e.
It will work as follows:
first s=0 and e=0.
dest[0] will be swapped with dest[size-1]
then s=1 and e=size-2.
then des[1] will be swapped with dest[size-2]
and it will keep on going till s is less than e.
Answer:
No bright colors, special odors, or nectar.
Small.
Most have no petals.
I believe the L is for "Least" Least Significant Bit
The largest numeric value that can be represented in 3 bytes is 224
Explanation:
- commonly, to represent a 999 number, 10 bits are used.
- But with 3 bytes, it can save or store integer with the range from 0 to 224-1 in the 24 bits. (3 * 8 bits =24 bits).
- Then the binary notation is used for encoded numeric data in order to store in the computer storage device.
I don’t have to be there in a long period but I’m still waiting to get in the back of my room to be