Answer:
void printBackwards(char s[])
{
int n=strlen(s)-1;//finding the last index of the string..
for(int i=n;i>=0;i--)//loop to print the string backwards..
{
printf("%c",s[i]);//printing the character of the string..
}
}
Output:-
abcdefg
gfedcba
Explanation:
I have used strlen function that will be used after including the string.h header file.It returns the length of the string.After finding the last index I have iterated over the c string in reverse order and printing the character of the string one by one.
Hmm well maybe there is bad Bluetooth connection coming from the laptop
Answer: The columns in a table are the set of facts that we keep track of about that type of object.
Explanation:
Answer:
D) It creates a vector object with a starting size of 10 and all elements are initialized with the value 2.
Explanation:
When you write the statement vector<int> v(10,2); This statement declares a vector or dynamic array of size 10 that is the first parameter and the second parameter is the value with which all the elements in the vector are to be initialized.So in this vector all the 10 values will be initialized with the value 2.It is one of the way of initializing the vector.
Answer: talk about da progrm
Explanation: