Runtime c expression ?? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Runtime c expression ??

How to get a c expression from user on runtime and evaluate them in runtime and produce output....is this possible on c

8th Dec 2019, 2:41 AM
U Hariharan
U Hariharan - avatar
2 Respostas
0
If you meant something like the `eval` function in some other languages, I guess it's not possible, except you have your own C language processor. But I could be wrong.
8th Dec 2019, 7:33 AM
Ipang
0
you can use command line arguments for that, am not sure thats possible in C though, C ain't that nice and friendly
8th Dec 2019, 7:34 AM
āœ³AsterisKāœ³
āœ³AsterisKāœ³ - avatar