Question: Given the declarations below, using the substr function, which statements will assign First to the name 1 variable and 'Last to the name 2 variable.

Given the declarations below, using the substr function, which statements will assign "First" to the name1 variable and 'Last" to the name 2 variable.
string name = "First Last", string name1=cdots;
string name 2=
a. name1= name substr(1.5.)
name - name substr(6);
b. name 1= name substic 1.6).
name = name subsir(6)
c. namel farne vostrco 5),
Memes - naine sulutivis.
 Given the declarations below, using the substr function, which statements will

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!