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
Pop Songs you wrote from your head that i can re edit it
lana [24]

(More like a poem but my friends said it could be turned into a song so-)

I saw the woeful scarcity of my generation destroyed,

How I mourned dearth.

Death is inferior. dearth are wretched,

death is execrable, however.

I cannot help but stop and look at absolute facts.

Do facts make you shiver?

do they?

Interruption, however hard they try,

Will always be zany.

Never forget the humorous and silly interruption.

Pay attention to the leave,

leaves are the most yellow pass away of all.

Does leaving make you shiver?

do they?

Don't believe that weaknesses are acute?

weaknesses are chronic beyond belief.

Does weakness make you shiver?

do they?

Pay attention to the inability,

Inability is the most mere quality of all.

Never forget the bare and simple inability.

(I have another one if you'd like that one too, or not that's fine)

4 0
3 years ago
Musically heightened speech that either reports dramatic action or advances the plot is called __________. It often makes use of
mina [271]

Answer:

the correct answer is is recitative

5 0
3 years ago
Which of these artists is not involved with the creation of architecture?
Kruka [31]

Answer:

Sculptor

Explanation:

6 0
3 years ago
When using gouache, the artist will notice that it is difficult to blend brushstrokes together. because of this, using gouache w
nalin [4]
This is incorrect. Gouache painting is very very similar to watercolours, so much so that the two can be used together. It is an opaque method of painting.
7 0
3 years ago
What do you think is the main role of a music critic?
Kipish [7]
To be open and not easily critic
4 0
3 years ago
Other questions:
  • What are the advantages and disadvantages of owning vs renting a home?
    10·1 answer
  • Why do you think domes and arches are most prevalent in churches and cathedrals? Why do you think they are not used more in resi
    12·1 answer
  • Amazing mosaics of stained glass windows were known to decorate large open areas of
    13·1 answer
  • New Orleans was established by people from which European country
    7·2 answers
  • What's your Zodiac Sign? Mines a Virgo and my ruling planet is Mercury, and my element is Earth. If you don't know what it is or
    5·2 answers
  • I really need help with my Cinematography and TV Production project, I have to make a 2 min holocaust memorial video and was won
    13·1 answer
  • Please help!
    12·2 answers
  • Cuneiform was first developed by the Sumerians so they could have _________________
    6·1 answer
  • What made howling wolf's drawings different from other ledger artists? multiple choice question. style of figures and animals us
    11·1 answer
  • Name three ways the development of radar in world war ii stimulated advances in computing.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!