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
Get step-by-step solutions from verified subject matter experts
