How can I invoke another program from within a C program?

Answers were Sorted based on User's Feedback



How can I invoke another program from within a C program?..

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

How can I invoke another program from within a C program?..

Answer / jai sundar

Just include tha other file name
#include "Filename.c" .

Is This Answer Correct ?    3 Yes 0 No

How can I invoke another program from within a C program?..

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

How can I invoke another program from within a C program?..

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

How can I invoke another program from within a C program?..

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

How can I invoke another program from within a C program?..

Answer / vamshi

simply use
#include<file_name.exe>.
the file with appropriate extention.

Is This Answer Correct ?    1 Yes 3 No

How can I invoke another program from within a C program?..

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

How can I invoke another program from within a C program?..

Answer / vrushali

I think the second solution works .. need to check....

Is This Answer Correct ?    0 Yes 6 No

Post New Answer

More C Interview Questions

main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }

0 Answers   Wilco,


what is the size of an integer variable?

4 Answers  


how can i get the output 54321 4321 321 21 1 in c programming........???? pls help......

10 Answers   Infosys,


what is an ERP?

2 Answers   Infotech,


Write a program to print the following series 2 5 11 17 23 31 41 47 59 ...

2 Answers  


What is the difference between text and binary modes?

0 Answers  


write a c program for greatest of three numbers without using if statment

4 Answers   IBM,


Explain how can you avoid including a header more than once?

0 Answers  


can you explain in brief what is "r+" mode in a file... i know that it si used to read and modify rhe existing content.... but explalanation about the file pointer in "r+" mode i wann to know???????????

2 Answers   Cognizant,


Can one function call another?

0 Answers  


what will be printed by this printf? printf("%c",printf("hi")["sharkselva"])); }

3 Answers   HCL,


What is the size of empty structure in c?

0 Answers  


Categories