1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
GalinKa [24]
3 years ago
9

" Is there any difference between subprogram, functions , methods , subroutines and procedures in C/C++?

Arts
2 answers:
Simora [160]3 years ago
6 0
Yes there is a difference.  <span />
skelet666 [1.2K]3 years ago
5 0
Well let me explain this to you in a better way. The terms 'subprogram', 'function' and 'method' have all the same meaning in C/C++ but we usually called them functions, and we divide the functions into two types :
1)Function : it's the usual one, as we all know, it returns a value.
  2) General format :
  Type function_name(<arguments>){
               // Your work
               return <value/variable> //Note : the type must be the same as the function
                                                    // type. }
      Example : int Maheen(int a, int b){
             int c = a + b;
            return c;
        }
 Procedure : it's a function but it doesn't return any value, it begins with 'void'.

General format :
       void function_name(<arguments>){
               // Your work
               //Note : There is no return here.
       }
       
Example :
       void Maheen(int a, int b){
             int c = a + b;
            printf("The sum is : %d", c);
        }

I think this can help you greatly
<span>
</span>
You might be interested in
The king of France loved the Italian Renaissance so much that he__________________.
Mrac [35]

Answer:

made spaget

Explanation:

5 0
3 years ago
Read 2 more answers
Please list the categories of color that artists use. Can you explain what each category means?
stellarik [79]

Answer:

The color wheel is made up of three different types of colors - Primary, Secondary, and Tertiary.

Explanation:

-primary colors can only be created through the use of natural pigments.  Secondly, all other colors found on the color wheel can be created by mixing primary colors together.

-Secondary colors are created by mixing equal parts of any two primary colors.  

-Tertiary colors are created by mixing equal parts of a secondary color and a primary color together. The proper way to refer to tertiary colors is by listing the primary color first and the secondary color, second.

3 0
3 years ago
When a girl wants beef we gonna taco bout it.
Liula [17]

Answer:

Thanksss for points

Explanation:

Much appreciated

4 0
3 years ago
A print pulled first to check the appearance of the block before changing it if necessary is called a proof (test print).
zhannawk [14.2K]
I believe it is true
3 0
3 years ago
Read 2 more answers
Anyone wanna makea vc
ELEN [110]

BUT WHAT IS THE FULL FORM OF VC ?

3 0
3 years ago
Read 2 more answers
Other questions:
  • Rose windows were for decoration, but what did other stained glass windows of the Middle Ages do?
    15·1 answer
  • The question is in one of the pictures please help
    15·2 answers
  • Artists primarily used the camera obscura to:
    7·1 answer
  • Members of a small group are having a difficult time unerstanding eachothers viewpoints. Which group roll most needs to be fufil
    14·1 answer
  • Why is the tomb of Rudolf of Swabia such an important sculpture?
    9·2 answers
  • Now, this is a story all about how
    11·1 answer
  • OMG sorry bout that this is what I need help on
    13·2 answers
  • Write a few sentences about how art has influenced you in your life and what it has taught you.
    12·1 answer
  • Compare effigy mounds and Nazca Lines. What is one thing that both of these art forms have in common?
    13·1 answer
  • If I have a Half note in a measure in 4/4 time, what else could I add to the measure to make it complete?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!