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
If the Elements of art are the building blocks of an artwork, then the principles of design are _________?
vaieri [72.5K]

Answer:

B. How the elements are organized to

Explanation:

I majored in Arts

5 0
3 years ago
Miriam Schapiro’s collage Baby Blocks combines two different kinds of shape. ________ is the term used to describe a shape that
elixir [45]

Answer:

Organic

Explanation:

Miriam Schapiro was a Canadian artist based focusing her work as a painter, sculptor, printmaker, and a pioneer of feminist art. According to my research on Schapiro's art, I can say that based on the information provided within the question the term used to describe a shape that suggests the natural world was Organic. In the collage being mentioned the organic shapes can be seen as the flowers and dresses.

I hope this answered your question. If you have any more questions feel free to ask away at Brainly.

6 0
3 years ago
Back again which puff looks better left-right or none or are they good?
zaharov [31]

Answer: the left one

5 0
3 years ago
Read 2 more answers
Artists vs artists!!!!!!!!!!!! who wins!!!
artcher [175]

Answer:

both

Explanation:

because they are unique in their work

7 0
2 years ago
Read 2 more answers
The elements of art are: Value, Shapes, Color, Abstract, Contrast, and Movement.
erik [133]

Answer:

No

Explanation:

Depth is a very important variable in art.

6 0
2 years ago
Other questions:
  • In a film, when actors engage in conversation, they usually
    11·1 answer
  • Help!!!
    8·1 answer
  • Why is good communication essential for successful designers?
    8·1 answer
  • Is hawks a villain or a hero?
    7·2 answers
  • Which words contribute most to the excerpt’s pace?
    6·1 answer
  • Why man explores the heavens.
    6·1 answer
  • Creation Workshop: Relief Printing
    5·1 answer
  • :Rhythms can be layered and combined
    8·1 answer
  • Tertiary Colors are achieved by mixing the primary colors with white and black.
    14·1 answer
  • The frosting on top of a hostess cupcake appears in what design?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!