You write a c++ program and it's in two files: myprogram.H, and myprogram.Cpp. Then a "process" is _____.
Answers
Answered by
6
Explanation:
The compiled version (executable) of this program in action, with stack, heap, registers, code, program counter, etc.
Answered by
0
Simple C++ program to understand better.
myprogram.h:
This is header file which contain declarations.
Here we can see welcome() is a declaration where the method definition will be defined in .cpp file.
#ifndef SAYHELLO_H
#define _H
void welcome();
#endif
Myprogram.cpp
#include <iostream>
#include “myprogram.h”
void welcome()
{
cout << "Hello in 2 parts!" << endl;
}
Int main()
{
void welcome();
{
cout << "Hello in 2 parts!" << endl;
}
When the both files are compiled,executable file will be created and also object file will be created.
Similar questions
India Languages,
6 months ago
English,
6 months ago
Computer Science,
1 year ago
Psychology,
1 year ago
Science,
1 year ago
Math,
1 year ago