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
Con acento febril entonemos de esta tierra su himno triunfal y a tu historia gloriosa cantemos para nunca tu nombre olvidar ¿que
Georgia [21]

Answer:  I don't understand what you're trying to say  

Explanation:

4 0
3 years ago
Read 2 more answers
Daily Reminder! I know I've said this a lot, but I will continue to say it each and every day! I love YOU and I care about YOU!
Alexus [3.1K]

Answer:

<3

Explanation:

kyrah I was gonna tell you in class but you left mid-type =P

look at my most recent answer (before this one)

this person wanted me to write an entire essay I literally burned them in an educated way. B)

8 0
3 years ago
Read 2 more answers
What is the main idea of the article? <br> Cultivate Resilience:
777dan777 [17]

Answer:

Explanation: The main idea of the article is that training our resilience makes us able to overcome these problems and makes us a much better person, giving us the strength to progress.

7 0
3 years ago
Rosa is chronically exposed to her parents' angry, unresolved conflict. Which of the following is Rosa likely to experience
ollegr [7]
I would say stress(A). If her parents are angry, they probably wouldn't be overprotective. She wouldn't have a improvement at school if she was stressed. If anything, her grades would drop. She wouldn't have a secure relationship with one parent, if the where both angry. Hope this helped! <span />
7 0
3 years ago
Which statement best describes Vincent van Gogh's artworks?
son4ous [18]

Answer:

They look representational.

Explanation:

It looks like they represent something, like a bigger picture.

7 0
3 years ago
Read 2 more answers
Other questions:
  • Prompt Think about something you have learned by viewing a video. It may be a part of history, the steps to completing a task, o
    13·2 answers
  • Choose the best word to complete the sentence. Two are at the top of each dictionary page to help you find words.
    10·1 answer
  • Who am I at this point in my life?
    15·1 answer
  • two chefs are preparing a dish and need to season it with salt and pepper. chef A says using your finger tips is the preferred m
    9·2 answers
  • What did the vogels artwork communicate about their historical interests
    6·1 answer
  • Coda is a concluding section in a composition; Italian term meaning "tail". The end part
    14·1 answer
  • How does music of the early 20th century differ so radically from genre to genre?
    13·1 answer
  • Imagine you were creating a brief (one minute or so) animation project. Briefly, describe the production timeline and responsibi
    13·1 answer
  • Funny uefigfyurwhbfrgw8yfgbfhwkv
    7·2 answers
  • Who is better naruto or boruto
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!