answersLogoWhite

0


Best Answer

First of all the source code is get compiled and the object code is returned i.e.binary code(machine language).Then the Linker, a computer program that takes one or more objects generated by a compiler and combines them into a single executable program. Now when the program is executed then the .exe file is first loaded into the memory and then executed by the processor.

In short the steps are:

1.Compilation

2.Linking

3.Loading

4.execution

User Avatar

Wiki User

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

Wiki User

15y ago

Every C++ program contains one or more functions, one of which must be named main . A function consists of a sequence of statements that perform the work of the function. The operating system executes a program by calling the function named main. That function executes its constituent statements and returns a value to the operating system. Here is a simple version of main does nothing but return a value: int main()

{

return 0;

}

The operating system uses the value returned by main to determine whether the program succeeded or failed. A return value of 0 indicates success. The main function is special in various ways, the most important of which are that the function must exist in every C++ program and it is the (only) function that the operating system explicitly calls. We define main the same way we define other functions. A function definition specifies four elements: the return type, the function name, a (possibly empty) parameter list enclosed in parentheses, and the function body. The main function may have only a restricted set of parameters. As defined here, the parameter list is empty;

The main function is required to have a return type of int, which is the type that represents integers. The int type is a built-in type, which means that the type is defined by the language. The final part of a function definition, the function body, is a block of statements starting with an open curly brace and ending with a close curly: {

return 0;

}

The only statement in our program is a return, which is a statement that terminates a function. When the return includes a value such as 0, that value is the return value of the function. The value returned must have the same type as the return type of the function or be a type that can be converted to that type. In the case of main the return type must be int, and the value 0 is an int. On most systems, the return value from main is a status indicator. A return value of 0 indicates the successful completion of main. Any other return value has a meaning that is defined by the operating system. Usually a nonzero return indicates that an error occurred. Each operating system has its own way of telling the user what main returned. == Having written the program, we need to compile it. How you compile a program depends on your operating system and compiler. For details on how your particular compiler works, you'll need to check the reference manual or ask a knowledgeable colleague. Many PC-based compilers are run from an integrated development environment (IDE) that bundles the compiler with associated build and analysis tools. These environments can be a great asset in developing complex programs but require a fair bit of time to learn how to use effectively. Most of these environments include a point-and-click interface that allows the programmer to write a program and use various menus to compile and execute the program. Learning how to use such environments is well beyond the scope of this book. Most compilers, including those that come with an IDE, provide a command-line interface. Unless you are already familiar with using your compiler's IDE, it can be easier to start by using the simpler, command-line interface. Using the command-line interface lets you avoid the overhead of learning the IDE before learning the language.

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

For TurboC:

First save the program you have written . then press Alt+f9 check weather there are any errors rectify them . This is called compiling the program . then press ctrl+f9. enter the input you desire to . this is called running the program

if you use getch() function the output comes at the time of running the program

or else you need to press Alt+f5. you will get the desired output

This answer is:
User Avatar

User Avatar

Wiki User

6y ago
  1. Planning
  2. Analysis
  3. Design
  4. Development & Implementation
  5. Testing
  6. Maintenance
This answer is:
User Avatar

User Avatar

Wiki User

8y ago

Write the C program (any editor will do); compile and link it; run the resultant executable.

This answer is:
User Avatar

User Avatar

Wiki User

8y ago

Write the C program (any editor will do); compile it; run the result (the executable file).

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

what are the steps followed in c program

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the six stages that typical c programs go through to be executed?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Has technology been through many stages of innovation?

Yes, technology has been through many stages of innovation.


Why three amplifiers are used in Tuned radio frequency receiver?

There are more than three amplifiers in a typical radio receiver. If, however, you are asking why there are three "stages" in the IF section, then the reason is that the IF section of a typical superhetrodyne receiver needs more bandwidth than can normally be provided by a single stage. As a result, there are usually three stages, each tuned slightly apart, so that you get a reasonable bandpass - otherwise, the demodulated signal will suffer.


Why is RF amplification needed in a radio receiver?

In a typical radio receiver, there will be, a tuning stage, several IF stages, followed by an audio amplifier. (And a few other ancillary bits we'll ignore here.) The signal from the aerial could be a microvolt or less, and the voltage required at the audio stage will be a few volts. It is not absolutely essential that any of the amplification take place in the tuning stage. Most of the amplification will take place in the Intermediate Frequency stages, and a little more in the audio stages.


How the production process is carried out through 3 stages of production in plastic chair manufacturing?

•Plastics -3 Stages of production •Manufacturing the resin -Most dangerous due to vapours involved •Molding, extruding, casting the resin •Bending, machining, polishing and decorating


What is the bacteremic phase?

There are two stages in the disease process. The first stage is during the active Leptospira infection and is called the bacteremic or septicemic phase. The bacteremic phase lasts from three to seven days and presents as typical flu-like symptoms.

Related questions

How long is a typical sleep cycle in which a sleeper progresses through some or all of the sleep stages?

90


How many matches will there be in Euro 2012?

There will be 31 matches from the group stages through to the final.There will be 31 matches from the group stages through to the final.There will be 31 matches from the group stages through to the final.There will be 31 matches from the group stages through to the final.There will be 31 matches from the group stages through to the final.There will be 31 matches from the group stages through to the final.There will be 31 matches from the group stages through to the final.There will be 31 matches from the group stages through to the final.There will be 31 matches from the group stages through to the final.There will be 31 matches from the group stages through to the final.There will be 31 matches from the group stages through to the final.


What are the five stages of a typical computer project?

window,tool, edit


What stages does hurricane Katrina go through?

stages


What stages do stars go through from formation to extinction?

1. What stages do stars go through?


Which animal do not pass through four stages of growth?

Most animals do not pass through four stages of growth. Butterflies, moths and mosquitoes are the common organisms that pass through the four stages of growth.


Has technology been through many stages of innovation?

Yes, technology has been through many stages of innovation.


Do mollusks go through larval stages?

yes mainly clams go through these stages. -Steve


The moon goes through stages where you can see different amount of it you call these stages?

you call these stages the phases of the moon


What is the number of stages panda go through?

there are 5 stages in a complete pandas life cycle


What is a the stages through which a plant or animal goes in it's life?

Plants and animals both go through stages in their lifetime. These stages are called the plants or animals life cycle.


In the early stages a typical bacterial infection on the nail plate can be identified?

Yellow-green spot