How to add individual characters in an array , not using loop | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to add individual characters in an array , not using loop

I want to add only spaces to an array Is this code is true :- char space[20]={" "," "} If I want only two spaces

26th Oct 2019, 6:11 AM
Abhay
Abhay - avatar
1 Answer
0
are you looking to add a double space? or single space in separate positions of the string? and how are we finding what position we want space added?
6th Nov 2019, 1:18 AM
Stephen Frey