answersLogoWhite

0


Best Answer

HI

You can first include the 1st program in ur 2nd program using # include<..> and then whatever be the output from frst it can be used in second program.

pankaj

That's what popen is good for. Read the manual.
User Avatar

Wiki User

8y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

15y ago

Directly:

MYPROGRAM >PRN

Indircetly:

MYPROGRAM >FILE.TXT

WRITE FILE.TXT

(File-menu/Print-command in Write)

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you capture the output of C program in to another C program?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are the Example Output of Calculator Program in C plus plus?

example output of c++ calculator


Write a c program to have followiing as output?

void main() { printf("followiing"); }


C program on how to calculate circumference of a circle?

int radius = 2; int output; radius = radius * 2; output = radius * Math.PI; Console.WriteLine(output);


What is actual path of execution of a program?

how programs are executed? Let we take C, how a c program is executing.... A first step we have to install a particular software for a execution so here we are installing turbo c then open the bin folder after the installation ,you will find on executable file named TC.exe it will look like a command prompt that only executing your c program files and giving another executable file for your program as output. to check fisrt create any simple program and first compile it and see the bin folder you will find one file named filename.obj and then run that program and now you will find another file filename.exe,that is an output file.


How do you create a program that will display output?

It must use a function with a "return" statement. Or you could output via console. (.NET CODE(C#)) Console.WriteLine("Output.");


How do you get an output of a c plus plus program to be printed?

See sources and related links below.


What is output if we don't write break statement in switch-case in c sharp?

This question cannot be generally answered, the output depends on the actual program.


How can you display Hindi word in output of java program?

Class hindi { public static void main() { char c; for(c=2309;c&lt;2362;c++) { System.out.println(" "+c); } } }


Is it stdioh in c stores source code of program?

No. That's a header file used for input and output.


What is input output console in c language?

There is no 'console' in C-language, but there is a standard input, a standard output and a standard error. They are pre-opened files (file-handles) you can use in your program without knowing what they actually are.


How do you extend to another c program using a superclass?

C does not support superclassing. Try C++.


What are the cout and cin identifiers in C and what are they used for?

std:cin and std:cout are the standard console input and output streams, respectively. By default, input is redirected from the console keyboard and output redirected to the console screen. However, both streams can be redirected from the command line. This not only allows input and output to be redirected from disk files but also permits the output of one program to be redirected as input to another, allowing two or more programs to be chained together (assuming the output of one program is in the exact format required as input to the next).