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
Why is it dangerous for people in the balcony of an auditorium to stamp their feet in a steady rhythm?
Luden [163]
It would vibrate, and at enough force it could break it loose from its supports.
4 0
3 years ago
4. What role did women play in the development of jazz music?
MakcuM [25]
African American woman alongside African American man pioneers used their artistic styles of singing, dancing, and making noises to create a new sound of music known as Jazz. It developed the most during the early 20 century during a era known as the Harlem Renaissance.

please vote my answer branliest! Thanks.
5 0
3 years ago
The Raft of the Medusa was painted by which artist? T/F
Oksana_A [137]
<span>the answer is Théodore Géricault.</span>
4 0
3 years ago
Read 2 more answers
On a tenor trombone, name the slide position that each of the following notes is played in. Please don't search for the answers.
Harlamova29_29 [7]

On a tenor trombone, the slid positions that each of the following notes is played on key C are:

  • A (A Natural) - Second Position
  • Bb (B Flat) - 1st Position
  • C (C Natural) 6th Position
  • D (D Natural) - 4th Position
  • Eb (E Flat) 3rd Position
  • F# (F Sharp)  - 5th Position
  • G# (G Sharp) - 3rd position./

<h3>What is a tenor trombone?</h3>

The fundamental note of the tenor trombone is B, and it is normally classified as a non-transposing instrument.

In the mid-nineteenth century, tenor trombones with C as its basic note were almost equally popular in Britain and France.

Learn more about tenor trombone at:
brainly.com/question/16749352
#SPJ1

3 0
1 year ago
Help me plssssssssssssss
Ronch [10]

Answer:

the first one

Explanation:

7 0
2 years ago
Read 2 more answers
Other questions:
  • By definition, what is “art”? What do you consider “art”
    9·1 answer
  • What is the main subject of the painting above? a. the visual effect that light produces on the scene b. the ships under the bri
    7·2 answers
  • Drawing from both recent and older material, George begins work recording the 1976 ____________ album at his UK home studio, fea
    7·1 answer
  • How do you shade yellow, orange, and red paint together to make a phoenix?
    5·2 answers
  • Which of the following instruments is Alison Krauss known for playing?
    11·2 answers
  • An animated short depicts a hungry character spying a delicious pie. The character's tongue drops down and he begins salivating
    9·2 answers
  • Describe the factors affecting atmospheric pressure.
    7·1 answer
  • For much of its history, theatre has not been performed in theatre buildings. Theatre can take place just about anywhere includi
    11·1 answer
  • herakles is often recognizable in visual arts because he wears a certain souvenir or trophy from his first labor - what is it?
    5·1 answer
  • The Hotel Texas was the fanciest place in Fort Worth, Texas.
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!