is there a exec() / eval() function in C??
for example..
exec(printf(3 + 4))
or
eval(printf(3 + 4))
i've done this in python... but i don't know how to do this in C and C languages..
i understand that this might be harmful in python as it can take any input.. so to overcome that i came to C which is more strict
this is just a experiment i am curious to learn
an explaination would be appreiciated
i am using sublime text (just in case...:] )
C
standard doesn't support any such functions.C
is strictly typed language.execute
some code you need tofork()
andexecv
(family of executions) or to execute function by spawning athread
and let him do the job. Or toload
dynamic library,SO