+ 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

23rd Oct 2017, 1:10 AM
sukhchet
sukhchet - avatar
3 Answers
+ 2
char name[SIZE]; int i; cin >> name; for(i = 0; name[i+1]; i++) cout << a[i] << "*"; cout << a[i];
23rd Oct 2017, 10:07 AM
Arkajyoti Banerjee
Arkajyoti Banerjee - avatar