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
I just wanna see how this works
kykrilka [37]
What is it that you want to see work?
7 0
3 years ago
Read 2 more answers
I can only live where there is light, but I die if the light shines on me. <br><br> What am I?
Illusion [34]
<span>I can only live where there is light, but I die if the light shines on me.

What am I?

You would be a shadow :D
</span>
5 0
3 years ago
Read 2 more answers
Which school of 1950s jazz emphasized heavy, dark timbres; featured tenor saxophone more often than alto; and used an assertive,
ollegr [7]

Answer:

Hard Bop

Explanation:

Hard Bop was birthed as an opposition to cool jazz of 1950s and was played mostly by urban musicians (from Philadelphia and Detroit) reflecting an East Coast, extroverted response to urban life.

While cool jazz preferred a light timbre, hard bop preferred a sound that was heavy, dark and impassioned. The saxophone of choice was tenor which replaced the alto and drummers played in a more assertive style.

3 0
3 years ago
What is a common characteristic of southern gothic literature?
butalik [34]
Ooooh I love this ok so Writers, such as William Faulkner, began writing a more specifically Southern form of American Gothic in the 1920s. However, the Southern Gothic genre reached its height in popularity in the 1940s-1960s. Southern Gothic literature was inspired by early Gothic writing, a genre that was popular in 18th century England
8 0
3 years ago
Read 2 more answers
What’s the answer? (the one that I haven’t answered yet)
Sedaia [141]

Answer:

Quaver

1+x+1 = 2 and 1 half Beats

Quaver= 1/2

8 0
3 years ago
Read 2 more answers
Other questions:
  • Which art movement was started as a form of protest over the horrors of World War 1
    11·1 answer
  • can someone give me a list of 20+ anime non mainstream in the 2000's thats good the binge (less then 50 episodes)
    15·2 answers
  • What does vonnegut use as the epigraph to his novel?
    6·1 answer
  • If bookshelf A is 3 feet long and bookshelf B is 4 feet long, what is the length of bookshelf C?
    12·1 answer
  • The larger the woodwind instrument, the higher the sound. <br> True or False
    7·2 answers
  • Select the correct answer. Based on the excerpt from Nick Hornby's Fever Pitch, which sentence best describes the role of footba
    15·1 answer
  • National parks protect endangered species from:National parks protect endangered species from:
    10·1 answer
  • What's New
    13·1 answer
  • This is Instrument hw please help !!!
    9·1 answer
  • Que es una flauta de bambú
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!