How to create space in string? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

How to create space in string?

I have been using '\t' but it creats 3 spaces in a row. As i want single space i used ' ' but it showed an error. I have to write "Welcome to C Programming." using string.

20th Apr 2020, 2:22 PM
Unnati Mishra
Unnati Mishra - avatar
2 ответов
0
You can write same as it is what you expexting when assigning.. Ex: char s[] =" Welcome to C programming"; printf("%s", s); Can you show how your trying which is showing error if still...? https://www.sololearn.com/discuss/333866/?ref=app
20th Apr 2020, 2:31 PM
Jayakrishna 🇮🇳
+ 1
What say if you share your code link within the thread Description? let people see the code, right now nobody knows what cause your code isn't here. Just follow this guide if you didn't know how to share links 👇 https://www.sololearn.com/post/75089/?ref=app
20th Apr 2020, 2:32 PM
Ipang