answersLogoWhite

0


Best Answer

You cannot. A C program can only have one global main function but you'd be trying to compile a program that has two main functions. The only way to merge the two programs is to modularise both programs so that neither is dependent upon their main functions. Once modularised, you can include those modules in any program. Alternatively, you can create binary libraries from the modules and link them into any program.

User Avatar

Wiki User

8y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you merge 2 Visual C programs to get a single output?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Is it possible to merge c and C programming language to visual basic?

No. The thinking behind each was so different and for different times, the 2 cannot be merged. Some features of each have their way into the iterations of the other.


Write java program to merge alternate lines from file1 and file2 into file1?

I suggest something like this:* Open file1 and file2 * Create a temporary output file, for writing * Read a line from file1, write it into the output file * Read a line from file2, write it into the output file * Repeat the previous two steps, while you are not at end-of-file in either of the two files * At this point, if you are NOT at end-of-file in file1, read the remaining lines of file1, and write them to the output (you can write a loop for this). * Similarly, if you are NOT at end-of-file in file2, read and write the remaining file. * Close file1, file2, and the output file. * Copy the temporary output file back to file1 * Erase the temporary output file


Why merge sort is adaptive?

Merge sort is adaptive because it can take advantage of "runs" that are already sorted. We call this algorithm the natural merge sort. Consider the traditional top-down merge sort: Start : 3421758906 Divide: 34217|58906 Divide: 342|17|589|06 Divide: 34|2|1|7|58|9|0|6 Divide: 3|4|2|1|7|5|8|9|0|6 Merge: 34|12|57|89|06 Merge: 1234|5789|06 Merge 12345789|06 Merge: 0123456789 With natural merge sort, we get the following: Start : 3421758906 Divide: 34217|58906 Divide: 342|17|589|06 Divide: 34|2|17|589|06 Merge: 234|15789|06 Merge: 12345789|06 Merge: 0123456789 As you can see, there is one less division and one less merge. However, note that the final division only divides one run (342), all the others are "already sorted" and don't need to be divided any further. With fewer (and longer) runs, there are fewer merges to perform.


What is the difference between shell sort and merge sort?

shell uses an odd number,merge uses an even number?


Is merge sort external sorting?

Can be. (Meaning: you can merge sorted files without loading them entirely into the main memory.)

Related questions

What are the maximum number of cells you can merge?

There is no limit to the number of cells you can merge into a single cell.


Will India and Pakistan merge into a single country?

In my opinion no because India and Pakistan were once a single country but because they are bitter enemies I dont think they will merge .


How merge 2 documents into a single one using PDF?

To merge two PDF Documents, you can use a program like Solid Print PDF. You can combine several types of files - such as text, images, and other PDFs - and create a single PDF output file. http://www.soliddocuments.com/features.htm?product=SolidPrintPDF Laura B. Solid Documents, LLC http://www.soliddocuments.com laurab@soliddocuments.com


How do you merge cells into single cell in Excel?

Highlight the cells you are interested in merging .. make sure you are on the "home" tab (found at the top of the excel program), and choose the down arrow beside merge & center in the "alignment box". there you will find the option to merge & center, merge across, merge cells, and unmerge cells ..


When you want to center and treat a range of cells as single cell?

It is a feature known as Merge and Center.


Where can one find more information about the meld tool?

Meld is a visual diff and merge tool targeted at developers. There are several sites one can find more information about the meld tool including Meld Merge, Git Guys, and Stack Overflow.


What does happen on transformer when both type of losses become equal?

the losses may merge resulting in the output being less than expected.


What does merge mean in excel?

It brings the contents of two or more cells into one cell, or allows you to spread a single cell across several rows or columns. You select the cells you want to merge, which must be together, and then apply the merge through the menus or icon.


What kind of software does one need to merge PDF files?

The names of some software programs that allow you to split and merge PDF files include PDFSAM (PDF Split and Merge) and Energizer PDF Splitter and Merger. You can get more information about these programs and download them at their respective websites.


How do you scan many pages into 1 file?

Most OCR (Optical Character Recognition) programs have the facility to integrate many separate scanned images into a single document. If this is not possible then another method would be to open the first document and merge the others into that document and then save it.


All of the information about a single person or business in a mail merge address file is known as a?

record !


What is the feature that creates a single cell out of many cells when using excel?

Merging, or sometimes called Merge and Center, as content can be centered in the resulting cell. Note, however, that only the content in the first (top, left) cell will be retained using the standard Merge or Merge and Center features.