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
For a project i gotta draw something outdoors ideas?
polet [3.4K]
You could draw a cow behind a spiked fence

4 0
3 years ago
3 of my brainliest got taken an im sad
Lesechka [4]

Answer:

Dang that is sad

Explanation:

7 0
2 years ago
What is the purpose of lighting in a room? Think of a room you know well and describe the types of lighting present, how the lig
alexira [117]

For a room within a house, the main purpose of lighting in a room is to aid sight or to be able to see.

<h3>What is the purpose of lighting in a room?</h3>

Generally, lighting is very important for an indoor space or a room, Houses are bulit to be confined. and isolated provision is made for natural or external lighhting to enter in as light is ned to see.

Rooms are built and designed to trap light and also disappear them as light particles are just traveling lithe wave.

In conclusion, Hence for a room looking for the best light, you should consider choosing colors that reflect rather than absorb light.

Read more about House

brainly.com/question/1023637

3 0
2 years ago
When MTV first went on the air on August 1, 1981, no one could have predicted the impact it would have on American and, eventual
Flura [38]

Answer:

New Jersey

Explanation:

7 0
3 years ago
What is the time duration for which an advertisement plays on a television or radio station?
Vaselesa [24]

Answer:

O c.

airtime

Explanation:

6 0
3 years ago
Read 2 more answers
Other questions:
  • In order to emphasize the abstract nature of his paintings, whistler often chose titles that were more commonly used in ________
    11·1 answer
  • Vibrancy deals with the emotion of the design based on the colors involved and their intensity
    5·1 answer
  • The loudness of a sound is related to the _________ of the vibration that produces the sound.
    6·2 answers
  • A tercet is a
    12·2 answers
  • Who painted the mona lisa
    11·2 answers
  • Before a response test, a student should
    7·2 answers
  • Action movies are among the genres that have benefitted enormously from 3D effects. Which explains this tendency?
    9·2 answers
  • Answer the following question in 3-4 complete sentences. Define the following terms: - close-up - portraiture - straight photogr
    15·2 answers
  • 1.foreground__________ 2.middle ground__________ 3.background___________
    14·1 answer
  • There are 1160 species of higher plants recorded from the________________________.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!