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

If i have an array 0 to 99 i.e,(Size 100) I place the values 1 to 100 randomly like a[0]=29,a[1]=56 upto array[99].. the values are only between 1 to 100. getting the array values by using scanf.. If i entered one wrong element value line a[56]=108. how can i find it.. and also how to find the missing value in 1 to 100.. and i want to replace the missing values.. any one of them know please post your answer..

0 Answers   IBM, Wipro,


How to add two numbers with using function?

4 Answers  


#define MAX 3 main() { printf("MAX = %d ",MAX ); #undef MAX #ifdef MAX printf("Vector Institute”); #endif }

1 Answers   Vector India,


Place the #include statement must be written in the program?

0 Answers  


Which programming language is best for getting job 2020?

0 Answers  


What is the use of volatile?

0 Answers  


How does placing some code lines between the comment symbol help in debugging the code?

0 Answers  


how to calculate the time complexity of a given algorithm? pls give exaples..mainly for the coplexities such as O(log n),O(n log n)...

1 Answers   Infosys,


what are bps & baud rates? differentiate these two?

2 Answers   TCS,


there is two conditions , 1. while using for loop for printing 1 to 50 no's simulteneous 2. while using printf functios for printing 1 to 50 no's simulteneous with or without using variables who will take more time for compiling and execution? explain in details with reason?

1 Answers  


In scanf h is used for

4 Answers   BFL,


Is boolean a datatype in c?

0 Answers  


Categories