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

When should structures be passed by values or by references?

0 Answers   Adobe,


2. Write a function called hms_to_secs() that takes three int values&#8212;for hours, minutes, and seconds&#8212;as arguments, and returns the equivalent time in seconds.. Create a program that exercises this function by repeatedly obtaining a time value in hours, minutes, and seconds from the user (format 12:59:59), calling the function, and displaying the value of seconds it returns.

5 Answers   TCS,


What is meant by gets in c?

0 Answers  


What are extern variables in c?

0 Answers  


main() { int x, arr[8]={11,22,33,44,55,66,77,88}; x=(arr+2)[3]; printf(ā€œ%dā€,x); }

8 Answers   Vector,






What is nested structure with example?

0 Answers  


what will be the output of "printf("%d%d",scanf("%d% d",&a,&b))".provide an explation regarding the question

6 Answers  


What is the most efficient way to count the number of bits which are set in an integer?

0 Answers  


Differentiate between a structure and a union.

0 Answers   Zensar,


pgm to reverse string using arrays i.e god is love becomes love is god) (assumption:only space is used for seperation of words) no addtional memory used.i.e no temporary arrays can used.

4 Answers   Persistent, Valyoo,


What is adt in c programming?

0 Answers  


what is the function of void main()?

8 Answers  


Categories