The following code should get the first character of the first name, middle name , and name, then return print them However, fill the missing code to run correctly
int main(){
char Name [3] [8]={"Mohd" , "Ashraf", "Zoghoul"; }
char initials [4] ; int i=0;
initials [0]________;
initials [1]________;
initials [2]________;
initials [3]=' \0'________;
cout << initials;
return 0;}
a.Name[0][++i]
b.Name[++i][0]
c.Name[0][++i]
d.Name[i++][0]
Comments
Leave a comment