Answer:
The split is given by including spaces in both tabs
Explanation:
The bracket notation can be used to indicate the split. Here is an example:
String [ ] parts = s. split ( "[/]")
Answer:
The options a)- A blast furnace is used and d)-Coke is used to produce the heat are FALSE.
Explanation:
Aluminium is a chemical element and the most abundant metal present in the Earth's crust. An aluminium ore is called bauxite. Aluminium is extracted from its ore by the process of electrolysis, called the Hall–Héroult process. The extraction of aluminium is an expensive process as it requires large amount of electricity. The bauxite is purified to produce aluminium oxide. Then, aluminium is extracted from the aluminium oxide.
<u>Therefore, the refining of aluminum from its ore does not involve the use of a blast furnace and coke to produce heat.</u>
<u />
Answer:
The following program is in C++.
#include <bits/stdc++.h>
using namespace std;
void lastChars(string s)
{
int l=s.length();
if(l!=0)
{
cout<<"The last character of the string is: "<<s[l-1];
}
}
int main() {
string s;//declaring a string..
getline(cin,s);//taking input of the string..
lastChars(s);//calling the function..
return 0;
}
Input:-
Alex is going home
Output:-
The last character of the string is: e
Explanation:
In the function lastChars() there is one argument that is a string.I have declared a integer variable l that stores the length of the string.If the length of the string is not 0.Then printing the last character of the string.In the main function I have called the function lastChars() with the string s that is prompted from the user.