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
What qualifications must a person have to become an art critic
Taya2010 [7]

art curator, may require a master's degree, while a degree in communications or journalism may also lead to a career as an art critic.

7 0
3 years ago
FINISH THE LYRICS
stiks02 [169]

Answer:

1.Traveled down a road and back again

2.She's so much older than me she's everything I'm insecure about.

Explanation:

4 0
3 years ago
Read 2 more answers
The Enlightenment started around AD 1700. What were artists beginning to do at this time?
Taya2010 [7]
The answer is b I think
7 0
3 years ago
Read 2 more answers
Just wanna say that I’m gonna stop using this app for a while <br><br><br> Also free 100 points
Lesechka [4]

Answer: oop.....

Explanation:

3 0
3 years ago
Read 2 more answers
explain why to choose purcell from others composers? What are the musical contributions this composer made towards the developme
timama [110]

The reason why I would choose Purcell over other composers would be because of how he used the unique form of Baroque music.

<h3>Who was the composer Purcell?</h3>

He was an English composer and his full name was Henry Purcell he was famous for his incidental music to a version of <em>Shakespeare's A Midsummer Night's Dream called The Fairy Queen.</em>

Hence, we can see that the personality of Purcell was one that was jovial and outgoing as he was an organist at the age of 20 for Westminster Abbey which also showed his incredible talent.

Read more about musical compositions here:

brainly.com/question/26373912

#SPJ1

3 0
2 years ago
Other questions:
  • Synecdoche is a form of _____.<br> a.apostrophe<br> b.metonymy<br> c.simile<br> d.metaphor
    8·1 answer
  • Compare and contrast the careers of mozart beethoven and haydn
    5·1 answer
  • •What genres does American literature include?
    5·2 answers
  • Can y’all help me with these symbols plssss
    10·2 answers
  • 4. What feelings do you have when looking at this artwork?
    14·2 answers
  • Please help me in art please
    11·1 answer
  • ITS THE LAST ONE! THEN I CAN SEND IT IN!!!!!!!!!
    7·2 answers
  • Describan el espacio y el tiempo en el que ocurren los sucesos para reconstruir el marco narrativo. El pescador y el genio
    5·1 answer
  • IF YOU MIX BLUE AND YELLOW WHAT COLOR DO U GET FIRST ONE RIGHT GETS BRAINLIEST ( ̄︶ ̄)↗
    15·2 answers
  • Genes provide instructions for making clotting factor proteins. The diagram to the left is an example of just one of hundreds of
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!