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 |
print 1-50 with two loop & two print Statement
in any language the sound structure of that language depends on its a) character set, input/output function, its control structures b) character set, library functions, input/output functions its control structures c) character set, library functions, control sturctures d) character set, operators, its control structures
difference between malloc and calloc
Explain the meaning of keyword 'extern' in a function declaration.
program for following output using for loop? 1 2 2 3 3 3 4 4 4 4 5 5 5 5 5
a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);
In which mode we open the file for read,write and append also in c ? a)W b)w+ c)r+ d)a
Can you write the algorithm for Queue?
0 Answers College School Exams Tests, TCS,
What are the different types of errors?
What is 1f in c?
Differentiate call by value and call by reference?
Please provide question papers of NATIONAL INFORMATICS CENTRE for Scientific officer