+ 1
Could anyone tell me the answer of this question
Write a program that accepts your friend name into a character array string variable. Display your name with an asterisk between each letter for example is your name Lisa display l*i*s*a save file as name with astrix.cpp
3 Answers
+ 2
char name[SIZE];
int i;
cin >> name;
for(i = 0; name[i+1]; i++) cout << a[i] << "*";
cout << a[i];