I have done programs that print themselves on execution,but is it possible for a c program to execute itself or another c program whose path is specified??
kris.c 0 Newbie Poster
Recommended Answers
Jump to PostYes. Want to know how?
It's operating system specific, but one general option is to use the 'system' procedure. Or, if you're using a Unixy operating system and want more control over how things are done, look at execve and its friends ('fork' followed by 'execv' will start a …
All 3 Replies
Reply to this topic Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.