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
Fernando botero what is their type of art called
spin [16.1K]
Boterismo is the answer
5 0
4 years ago
ALL of the equations that are equal to 2 • 2 • 2 • 2 • 2=
Naya [18.7K]

Answer:

the answer is A and D 2•5 and 5•2

3 0
3 years ago
Read 2 more answers
Which of the following is a general two year college level degree
Viefleur [7K]
Where are the choices? 
8 0
3 years ago
Read 2 more answers
What advice/ tips would you give someone who is considering writing own song for the first time?​
dedylja [7]
Write from the heart, use methods of writing (repetition, rhyme, etc) and try to make up a tune in your head to match your lyrics to. don't be afraid to use other and old songs for reference :) just be wary of copying
3 0
3 years ago
Read 2 more answers
1. What was the major flaw with the technique developed by Thomas Wedgwood?
Rzqust [24]

Answer:

imagine so free boxed lika ah giah

3 0
3 years ago
Other questions:
  • What photo-editing function would you choose to make a photograph look like a painting?
    10·1 answer
  • How is the key of a song established?
    13·2 answers
  • Define the two main types of mixed media and their purpose(s).
    11·2 answers
  • hat number should go in the empty boxes to complete the calculation for finding the product of 0.53 × 0.67? 0.53 times 0.67 equa
    11·1 answer
  • This is your time don't get that much time with me
    7·1 answer
  • Which technique should be used when photographing the portrait of an active subject?
    7·1 answer
  • ค้้้้้้้้้้้้้้้้้้้­้้้้้้้้้้้้้้้้้้้้­้้้้้้้้้้้้้้้้้้้้­้้้้้้้้้้้้้้้้้้้้­้้้้้้้้้้้้้้้ ค้้้้้้้้้้้้้้้้้้้­้้้้้้้
    15·2 answers
  • As curator at the museum, you are hosting a new collection that showcases different elements and principles of art. A new piece
    11·1 answer
  • How many beats are in each of these measures in music<br><br> Yes
    5·1 answer
  • What do i do if im single and lonely?
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!