Irb-type tool for C / C ++

When writing ruby ​​code, it's easy to check how different functions work by checking them in irb. But in order to test the C code, I usually have to open a separate IDE and write the code there to check how it works. Is there an interpreter tool available on Unix or Windows?

+1
source share
3 answers

C is not an interpreted language. However, there are several translators. I think the best one is Ch, but it is not open source. CINT - open source:

http://directory.fsf.org/project/CINT/

+1
source

If you just want to test the code instance and the code inserted into the pattern, I often use CodePad to see the results of individual functions right away without compilation. However, it has its limits.

+1
source

I think Ch is the closest you will get to C / C ++ REPL. I believe that it supports all the functions of C and some C ++.

0
source

All Articles