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
30 Points!
miss Akunina [59]
The answer is A sculpture
7 0
3 years ago
Read 2 more answers
Subject is art look at the photo :))
skelet666 [1.2K]

Answer:

WAT

Explanation:

8 0
3 years ago
Songs you wrote that i can finish<br> please need ideas<br> time limit<br> need help<br> no cursing
AveGali [126]

Answer:

Stinky bung

Stinky bung

come to me

for a song

a song that goes

stinky bung

stinky bung

5 0
2 years ago
Read 2 more answers
Which is not a characteristic of Baroque art in the Dutch Republic?
erastova [34]

Answer:the growing popularity of large-scale, Protestant-themed paintings for churches

6 0
3 years ago
Read 2 more answers
Describe the Lod Mosaic in YOUR OWN WORDS please and thank you!
Katena32 [7]

Answer:

The patterns depict birds, fish, animals and plants, in addition to providing detailed images of Roman ships. However, the mosaic also noticeable features like, rhinoceroses and giraffes, which were not common in ancient art. Mythical beings are also portrayed. Nothing is written on the mosaic; inscriptions are common in Roman-era mosaics from public buildings, so it is assumed that the mosaic was most likely part of a private villa.

Explanation:

I hope you get a good grade on this :)

8 0
2 years ago
Read 2 more answers
Other questions:
  • The vantage point is significant to perspective because
    15·1 answer
  • Rock, paper, scissors is an example of a game that uses :
    15·2 answers
  • A newly discovered painting seems to be the work of one of two seventeenth-century artists, either the northern German Johannes
    5·2 answers
  • Which of the following is one of the challenges of news reporting in the digital age?
    11·2 answers
  • Jennifer is an artist. She includes herself as part of a living artwork in an exhibition, along with a statue of a horse. She is
    5·1 answer
  • Me ajudem por favor
    10·1 answer
  • 1.
    12·2 answers
  • In "Dad Feels Good - Ft. Danny Brown" Danny has a verse
    10·1 answer
  • Please help me with my Film Definitions. !!!ASAP!!!
    9·1 answer
  • This instrument was not popular during the medieval period:
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!