How can I invoke another program from within a C program?
Answers were Sorted based on User's Feedback
Answer / phani kumaer
just making the file name as preprocessor header file
and add this tag into the necessary program block
#include"Filename.h"
| Is This Answer Correct ? | 12 Yes | 2 No |
Answer / jai sundar
Just include tha other file name
#include "Filename.c" .
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / phani kumar s
by using the proprocessor directive notation.
convert ur program as .h file.
or
use the files with functions.
| Is This Answer Correct ? | 6 Yes | 4 No |
Answer / srinivas
Just use system() call
like
system(test.exe);
the above statement when executed will executes test.exe and
returns when test.exe finishes its executions./.
| Is This Answer Correct ? | 3 Yes | 3 No |
Answer / sharath
please can any one give an example program for this question
How can I invoke another program from within a C program?
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / vamshi
simply use
#include<file_name.exe>.
the file with appropriate extention.
| Is This Answer Correct ? | 1 Yes | 3 No |
Answer / phani kumar s
to access one C program in another C Program
there are two ways
1.making the file .exe and accessing and
2.include the file as the preprocess header
#include"File.h"
| Is This Answer Correct ? | 1 Yes | 3 No |
Answer / vrushali
I think the second solution works .. need to check....
| Is This Answer Correct ? | 0 Yes | 6 No |
There is a mobile keypad with numbers 0-9 and alphabets on it. take input of 7 keys and then form a word from the alphabets present on those keys.
print 1-50 with two loop & two print Statement
What is #include stdio h?
What is function in c with example?
What is the most efficient way to store flag values?
What is the difference between union and structure in c?
What is the difference between array and pointer in c?
what is const volatile?
Write a small C program to determine whether a machine's type is little-endian or big-endian.
What is Bitwise Operator and how it works?
what is difference between userlevel threads and kernel level threads ?what are the trades offs between these two approaches ? what approach is most frequently used and why ?
44.what is the difference between strcpy() and memcpy() function? 45.what is output of the following statetment? 46.Printf(“%x”, -1<<4); ? 47.will the program compile? int i; scanf(“%d”,i); printf(“%d”,i); 48.write a string copy function routine? 49.swap two integer variables without using a third temporary variable? 50.how do you redirect stdout value from a program to a file? 51.write a program that finds the factorial of a number using recursion?