# \[C\] converting a string

**URL:** <https://forum.kirupa.com/t/c-converting-a-string/220411>\
**Category:** programming\
**Created:** [March 26, 2007, 7:17am UTC](https://forum.kirupa.com/t/c-converting-a-string/220411 "2007-03-26T07:17:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnlouis](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/johnlouis/32/568_2.png) [@johnlouis](https://forum.kirupa.com/u/johnlouis)\
**Post date:** [March 26, 2007, 7:17am UTC](https://forum.kirupa.com/t/c-converting-a-string/220411/1 "2007-03-26T07:17:46Z")

</div>

how do i convert a string, “1 + 13 / 4 \* 2 - 10”, to a computable format, where the integers become type int and the operators remain as char so i could then display the output of that equation?
