Question: 1) Suppose that str1, str2, and str3 are string variables. i. Write an C statement that concatenates str1 and str2, storing the result into str3.

1) Suppose that str1, str2, and str3 are string variables.

i. Write an C statement that concatenates str1 and str2, storing the result into str3. (str1 and str2 should not be changed.)

ii.Repeat part (i), using C++ instead of C. Assume that str1, str2, and str3 are string objects.

iii.Repeat part (i), using Ada instead of C.

2). (i) If a is a two-dimensional C++ array, is it legal to use the expression a[i, j] in a program? If so, what is the meaning of a[i, j]?

(ii) If a is a two-dimensional Java array, is it legal to use the expression a[i, j] in a program? If so, what is the meaning of a[i, j]?

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!