How to read empty string in c
Posted
by russell
on Stack Overflow
See other posts from Stack Overflow
or by russell
Published on 2010-04-30T08:27:07Z
Indexed on
2010/04/30
8:37 UTC
Read the original article
Hit count: 286
c
I have a problem with reading empty string in c.I want to read string from the following -
1.ass
2.ball
3.(empty)
4.cat
but when i use gets() it does not treat (empty) as string[3].it read 'cat' as string[3].So how can i solve this problem.Which thing should i use?? plz someone help.
© Stack Overflow or respective owner