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
People who often are involved in dramatic productions often gain valuable skills and insights from both their individual and col
wlad13 [49]
True I am pretty sure
8 0
3 years ago
Santone's client has said that he wants a pop of color in the office space that Santone is designing. What would be the color sc
Inessa05 [86]
A hope this helped you
6 0
3 years ago
7.Which of the following is NOT a benefit of economic integration?Required to answer.
REY [17]
Answer; higher cost of living
Explanation: I hope this helps tou!
6 0
3 years ago
What do you think of Hirohiko Araki’s art style compared to other mangakas
Anarel [89]

Answer:

his old style was similar to guts style. LIke the shading and stuff like that

Explanation:

8 0
3 years ago
Read 2 more answers
100 POIINTSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
Jobisdone [24]

Answer:

THANK YOU YOU'RE LITERALLY THE BEST- BLESS UR HEART

Explanation:

fnfughjfj,

‧₊˚ ꒰ mei ꒱ ‧₊˚

6 0
3 years ago
Other questions:
  • How did Woody’s personality influence his music?
    15·2 answers
  • When shading what position is recommended for holding your pencil and what angle to press down?
    11·1 answer
  • Can anyone draw a pic for argon illustration liquid
    14·1 answer
  • The main theme, heard transformed in each movement of the symphonie fantastique, is called:
    6·1 answer
  • Which command would you use if you want to convert an oval to a path that has nodes you can edit? Choose the answer.
    10·1 answer
  • please write a paragraph with some of these words: abate, admonish, addict, adjacent, acquire, accelerate, acrid, agitate, affli
    15·1 answer
  • What do you guys think about the new Weezer Album "OK Human" Do you hate the lack of electronic instruments, or do you think it
    14·2 answers
  • What is considered to be the actor's instrument?
    7·1 answer
  • What does the author list in the stage directions in the actor's nightmare?​
    14·2 answers
  • What is a benday dot?
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!