Input
Code: Select all
SAD
DOG
Code: Select all
23
32
Moderator: Board moderators
Code: Select all
SAD
DOG
Code: Select all
23
32
Code: Select all
Accepted
I'm not sure whether printing '\0' is ok..MasterHunter wrote:I tried the input mentioned above and got the correct output... My code:
Can anybody help me? I got WA =/
Code: Select all
if (next_char != '\0')
printf("%c", next_char);
Code: Select all
LR
Code: Select all
46