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 |
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..
How to add two numbers with using function?
#define MAX 3 main() { printf("MAX = %d ",MAX ); #undef MAX #ifdef MAX printf("Vector Institute”); #endif }
Place the #include statement must be written in the program?
Which programming language is best for getting job 2020?
What is the use of volatile?
How does placing some code lines between the comment symbol help in debugging the code?
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)...
what are bps & baud rates? differentiate these two?
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?
In scanf h is used for
Is boolean a datatype in c?