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
THE FOLLOWING ARE THE TRADITIONAL COLOR ARE USE IN JAVANESE BATIK EXEPT
vladimir2022 [97]

Answer:

The following are the traditional colors used in Javanese batik, except:A. BlackC.

3 0
3 years ago
Read 2 more answers
Which type of music is written for and preformed by a small ensemble
AnnyKZ [126]
I believe it’s chamber music
4 0
3 years ago
Read 2 more answers
Is when clay is formed using the fingers and thumb to pinch the clay into a form.
Varvara68 [4.7K]

Answer:

is when clay is formed using the fingers and thumb to pinch the clay into a form

Explanation:

7 0
3 years ago
What was the name of the great opera composer that grandma Rosalie tells Reliana
vredina [299]

rossinies ghost that is the answer i think

7 0
3 years ago
1. Does something have to be original to be art? Can a forgery or copy be art?
aev [14]

Answer:

1. All works of art can be original but not all art is as original as others. Its not morally wrong but it involves passing a copy of the artists work off as created by the original artist, usually for financial gain.

2. The definition of work of art is something that is considered to have aesthetic value, so.ething that is beautiful, intriguing, interesting, creative or extremely well done.

3. Art influences society by changing opinions, instilling values and translating experiences across space and time.

4. Yes, art can express feelings and ideas by how you make your art or what you put into it.

5. Art brings people together physically—at galleries, museums, performance spaces—and culturally, through its capacity to tell a community's shared stories.

8 0
3 years ago
Other questions:
  • Why is it important to have a research plan?
    15·2 answers
  • Define symbolic expression. Why are visual elements of art important to symbolic expression?
    6·1 answer
  • Imagine you are creating an advertisement and its layout. List answers for the following questions:
    9·2 answers
  • Which BEST analyzes the symbolism of the fourth stanza of this excerpt?
    10·2 answers
  • Define the term monogram. Why are they used by artists?
    6·2 answers
  • What makes it interesting to you​
    5·2 answers
  • Hi guys whats your favorite kind of painting tool to you know make a masterpiece say why?
    14·2 answers
  • Are any of these a good drawing? I need it for Art class . . .
    13·2 answers
  • Exposition rising action
    14·1 answer
  • Hi UwU<br><br><br> new to dis site
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!