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
When will the reflections on the water be best?
KengaRu [80]
Hey there Malihaahmad321,

When will the reflections on the water be the best?

Answer:

On a calm day

Hope this helps :D

<em>~Danielle </em>
6 0
3 years ago
Girl with a mandolin by pablo picasso. shapes and forms are placed to look like a girl with a mandolin. what is the name of the
Vikentia [17]

Answer:

Fanny Tellier

Explanation:

Fanny Tellier is the name. Sorry I couldn't do a more detailed response, so here is a fun fact. Pablo Piccasoś first word was <em>lapiz</em>, the spanish word for pencil.

6 0
1 year ago
Which is not a way to create balance in art?
Katyanochek1 [597]
I would say C. Through subordinating individual elements to the total effect

7 0
2 years ago
Read 2 more answers
What two colors do you mix together to get purple?
nevsk [136]

Answer:

Mixing red, white and blue primary colors will yield purple.

Explanation:

brainliest?

6 0
3 years ago
A reliquary is
LenaWriter [7]

Reliquary is a box for holy relics.

<u>Explanation</u>:

  • A reliquary is also called a shrine. It is a container or a box of holy relics.
  • These holy relics are considered to be the actual remains or are believed to be the remains of holy saints.
  • These remains may be bones, clothing pieces or objects used by those saints.
  • The relics are very important for the Catholic Church. It is believed that these relics have healing powers and it is a widespread belief.
8 0
3 years ago
Read 2 more answers
Other questions:
  • What can we not conclude from a formal analysis of david hockney's portrait of an artist (pool with two figures)?
    5·1 answer
  • Which of the following fabrics can look cheap and fake onstage because of the way it reflects light from the stage lights?
    6·2 answers
  • Hadero explains how she “remixed” Cage’s piece after hearing the distinct sounds of a rolling cooking pan lid. Provide at least
    14·1 answer
  • What might help you get a new perspective on a subject?
    8·2 answers
  • An octave is-
    9·2 answers
  • Braine i good pls be good
    5·2 answers
  • Can someone draw me a maze I'll give u more points in a different qestion
    7·2 answers
  • Can someone be my friend
    5·1 answer
  • So in art class were ment to make mushrooms<br><br> opinions does it look like a mushroom
    8·2 answers
  • Who do you think was the most honorable human within the Iliad?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!