blob: a894a743b2fbab9458fdcdb88a72018e73ead7f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
clear;
clc;
printf("\n Example 2.2\n");
// String insertion.
s="auto";...............//1st string or character array.
x="mobile";...............//2nd string or character array.
z=s+x;..........//concatenation of 2 strings.
printf("\tstring s=");
disp(s);
printf("\tstring x=");
disp(x);
printf("\tconcatenated string z=");
disp(z);........//dispalying concatenated string.
|