How we can use a string in C | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How we can use a string in C

1st Oct 2017, 7:38 AM
RaHuL KuMaR ShArMa
2 Answers
+ 1
#include <stdio.h> void main(){ char str[] = "Hello World"; printf("%s", str); }
1st Oct 2017, 7:50 AM
Ankit Agrawal
Ankit Agrawal - avatar