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
Drawing is thousands of years old, although it became more common when this became more widely available in the 15th century.​
Romashka-Z-Leto [24]

Answer:

cool fact

Explanation:

6 0
3 years ago
Read 2 more answers
Get some points super easily! Just say if you like anime or not. c:
kow [346]

Answer:

nope

Explanation:

8 0
3 years ago
Read 2 more answers
What does not affect the quality or pattern of a cloth being woven on a loom?
Alborosie
A.how the loom is threaded
6 0
3 years ago
What was monet intrested in?
Agata [3.3K]

Answer:

light, the changes of light, and how it affected objects

Explanation:

that's it :)

3 0
3 years ago
Read 2 more answers
Show me your funniest Memes.
Vinvika [58]

Answer: :)

i searched it on google

5 0
3 years ago
Read 2 more answers
Other questions:
  • a farmer selles 9.3 kilograms of apples and pears at a farmers market 3/4 of its wheight is apples the rest are pairs how many k
    9·1 answer
  • What is the name of the building above? a. Monticello b. Mount Vernon c. Springfield d. Mont Blanc
    5·1 answer
  • I know that 75 bpm are for the song visions of gideon I just need to know what the rhythm is and the range of the song along wit
    6·1 answer
  • Can anyone help me with my art assignment?
    10·1 answer
  • Which of the following would be a good time to include context in the background of a portrait?
    10·1 answer
  • Which statements about Egyptian, Chinese, Viking, Moche, and Roman jewelry are true? Choose all answers that are correct.
    9·2 answers
  • Interior Design Project
    13·1 answer
  • Anser THE PICTURE as fast as you can. match the words in the bank with the difinitions
    10·2 answers
  • Type the correct answer in each box, Spell all words correctly.
    11·1 answer
  • A song in which each syllable receives one note is called:.
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!