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
Wastong praan ng Paglalaba...<br> 1.<br> 2.<br> 3.<br> 4.<br> 5.
katrin2010 [14]

Answer:

huh

Explanation:

4 0
2 years ago
explain why developments in science, technology and social changed affected art in such a dramatic way.
slava [35]
Developments in science, technology, and social change affect art because art reflects our surroundings. People create art that mirrors social issues, personal beliefs, and political ideas, so when those things develop and change, art changes with them. Science and technology have also been used to create new forms of art, so as they develop some forms of art become more modern and sophisticated.
3 0
3 years ago
Read 2 more answers
1.Which element of art is most evident in the drawing of these buildings?
lyudmila [28]
I think this is it:

C
A
D
4 0
3 years ago
Typical American conservatives support _____.
dlinn [17]

Answer:

The correct answer is C. Less restrictive gun control laws to ensure the Second Amendment is upheld.

Explanation:

In the Bill of Rights (which includes the first ten amendments of the Constitution of the United States of America), a document rectified in 1791, the Second Amendment states that every citizen has the right to own and carry weapons. Conservatives support this because they believe it is their only chance to avoid totalitarianism from the elected president over martial law.

6 0
3 years ago
What is a good way to begin working in wedding photographer? A. Charge as much as you can to get the equipment that you’ll need
lilavasa [31]

D. All of the above.

~~~~~~~~~~~~~~~~~~

4 0
3 years ago
Read 2 more answers
Other questions:
  • This image shows the Academy of Athens in Greece the architecture is an example of what principle of design?
    9·2 answers
  • I have to create a painting about toxic masculinity using the following quotes.Can someone give me ideas for it?
    12·1 answer
  • Who is credited with inventing the first commercially successful photographic process
    12·2 answers
  • "the tell tale story" how does the use of a first-person narrator contribute to the development of suspense
    9·1 answer
  • Prompt
    11·1 answer
  • What is the cubical expansivity of the liquid while freezing?​
    10·2 answers
  • Who knows Aphmau and all the people from aphmau's roleplay videos?
    10·1 answer
  • How do i do an e on the a string of the cello ?
    5·2 answers
  • What design should I put on my jordens? please Answer
    10·2 answers
  • in which historical period did composers begin to write music with more colorful harmonies and altered chords
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!