0
Why puts cant work here
void main(){ char s[ ]= "Lol sam 66"; char *p; p=s; while(*p) puts(*p++); while(--p>=s) puts(*p);
4 ответов
+ 5
Use putchar instead of puts (and int main + return 0 instead of void main) and you'll be fine
+ 4
Yes, isn't that what you're doing? Iterating over the string char by char?
+ 2
Daa tnx👌🏽
+ 1
Anna Isnt a putchar only for 1 character?