parsing line | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

parsing line

https://code.sololearn.com/c4KzJEDLhkHU hi friends here I wrote a code which read a line in runtime if we don't give any input(string) in run time and press enter ,then it is getting segmentation fault please suggest me the solution Thank you

24th Jul 2019, 4:52 AM
malepu rakesh
malepu rakesh - avatar
1 Answer
+ 6
malepu rakesh in last line you have unnecessary words like 119,0-1 Bot remove that line your code will parsing the input string right https://code.sololearn.com/cvsNUFBQupZs/?ref=app
24th Jul 2019, 5:54 AM
GAWEN STEASY
GAWEN STEASY - avatar