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

explain about storage of union elements.

2 Answers   ABC, Bosch,


Explain what is the benefit of using const for declaring constants?

0 Answers  


Here is a neat trick for checking whether two strings are equal

0 Answers  


main() { int a,b; printf("%d,%d",scanf("%d%d",&a,&b)); } => do u mean above program's output... =>output will be:2,whatever you enter value for b. =>because scanf is a library fn which will return how many arguements it processes, and second value you are right mr.Satya but i found my self unable to understand that for the first time scanf returns the no of successful matches but how for the second time it returns the value of 'b'.while a function should return the same 'r' value every time.

1 Answers   Cisco,


write an algorithm to get a sentence and reverse it in the following format: input : I am here opuput: Here Am I note: first letter of every word is capiatlised

3 Answers  






What is the best organizational structure?

0 Answers  


The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference

0 Answers  


What is 02d in c?

0 Answers  


How can I implement sets or arrays of bits?

0 Answers  


Are there constructors in c?

0 Answers  


How does C++ help with the tradeoff of safety vs. usability?

1 Answers  


if ENTERED FIVE DIGITS DESIGN A PROGRAM THAT WILL FIND CORRESPONDING VALUE FROM ASCII TABLE

1 Answers  


Categories