ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C
 
 


 

 
 C interview questions  C Interview Questions
 C++ interview questions  C++ Interview Questions
 VC++ interview questions  VC++ Interview Questions
 Delphi interview questions  Delphi Interview Questions
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions
Question
How can I invoke another program from within a C program?
 Question Submitted By :: Tribhuvan Sharma
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How can I invoke another program from within a C program?
Answer
# 1
by using the proprocessor directive notation.
convert ur program as .h file.

or
   use the files with functions.
 
Is This Answer Correct ?    2 Yes 3 No
Phani Kumar S
 
  Re: How can I invoke another program from within a C program?
Answer
# 2
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 ?    1 Yes 2 No
Srinivas
 
 
 
  Re: How can I invoke another program from within a C program?
Answer
# 3
I think the second solution works .. need to check....
 
Is This Answer Correct ?    0 Yes 3 No
Vrushali
 
  Re: How can I invoke another program from within a C program?
Answer
# 4
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 ?    4 Yes 0 No
Phani Kumaer
 
  Re: How can I invoke another program from within a C program?
Answer
# 5
simply use
          #include<file_name.exe>.
the file with appropriate extention.
 
Is This Answer Correct ?    1 Yes 1 No
Vamshi
 
  Re: How can I invoke another program from within a C program?
Answer
# 6
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 2 No
Phani Kumar S
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
simple c program for 12345 convert 54321 with out using string  5
Whats wrong with the following function char *string() { char *text[20]; strcpy(text,"Hello world"); return text; } Qualcomm3
the factorial of non-negative integer n is written n! and is defined as follows: n!=n*(n-1)*(n-2)........1(for values of n greater than or equal to 1 and n!=1(for n=0) Perform the following 1.write a c program that reads a non-negative integer and computes and prints its factorial. 2. write a C program that estimates the value of the mathematical constant e by using the formula: e=1+1/!+1/2!+1/3!+.... 3. write a c program the computes the value ex by using the formula ex=1+x/1!+xsquare/2!+xcube/3!+.... Ignou2
related to rdbms query .  1
how to impliment 2 or more stacks in a single dimensional array ? iFlex1
#include<stdio.h> main() { char s1[]="Ramco"; char s2[]="Systems"; s1=s2; printf("%s",s1); } Find the output CitiGroup4
#include<stdio.h> main() { char *p1; char *p2; p1=(char *) malloc(25); p2=(char *) malloc(25); strcpy(p1,"Ramco"); strcpy(p2,"Systems"); strcat(p1,p2); printf("%s",p1); } Tell me the output? Ramco5
Unsigned char c; for ( c=0;c!=256;c++2) printf("%d",c); No. of times the loop is executed ? Mascot3
i want to know aptitude questions,technical questions  2
how the size of an integer is decided? - is it based on processor or compiler or OS? nvidia16
Why does not use getgh(); and <conio.h> in c language. Elofic2
write a program to arrange the contents of a 1D array in ascending order  3
program to find middle element of linklist? Huawei1
How to implement variable argument functions ? HP1
How would you print out the data in a binary tree, level by level, starting at the top? Microsoft4
two variables are added answer is stored on not for third variable how it is possible?  3
what is the code for getting the output as * ** *** Caritor5
ABCDCBA ABC CBA AB BA A A  1
What is the function of ceil(X) defined in math.h do? A)It returns the value rounded down to the next lower integer B)it returns the value rounded up to the next higher integer C)the Next Higher Value D)the next lower value Accenture3
I have an array of 100 elements, each of which is a random integer. I want to know which of the elements: a) are multiples of 2 b) are multiples of 2 AND 5 c) have a remainder of 3 when divided by 7  1
 
For more C Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com