Computer Science, asked by priyakunda8850, 1 year ago

You write a c++ program and it's in two files: myprogram.H, and myprogram.Cpp. Then a "process" is _____.

Answers

Answered by sonuo2
6

Explanation:

The compiled version (executable) of this program in action, with stack, heap, registers, code, program counter, etc.

Answered by lovingheart
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