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
How did the arrival of a new religion change the focus of Chinese paintings ?
elena55 [62]

Basically, Great philosphers, teachers, religious figures and even political leaders influenced Chinese art into different forms of art. By then, paintings of more subtle expressions of landscapes appeared with blurred outlines and mountain contours which conveyed distance through an impressionistic treatment of natural phenomena and it was during this period that in painting, spiritual was more emphasised rather than emotional elements as in the previous period.

6 0
2 years ago
The artist Eadweard Muybridge was revered for his work because he set up a system of trip-wires that would each activate a shutt
katrin2010 [14]
The answer is D. Horses in motion
3 0
2 years ago
Read 2 more answers
Como informado no texto, o Brasil possui uma vasta diversidade cultural. Pesquise e descreva as
goldfiish [28.3K]

Answer:

wuuuuut

Explanation:

7 0
2 years ago
Who are your favorite bands, artists, or genres you listened to growing up?
pav-90 [236]

Answer:

My Chemical Romance is the best

Explanation:

4 0
3 years ago
Read 2 more answers
1)Once the clay is dry where does it go next? <br><br> 2)Describe what is a bisque firing
AnnZ [28]

Answer: i’m not into pottery but after drying you fire the clay and a bisque firing would be firing without ceramic glaze

Explanation: just search it up

3 0
2 years ago
Other questions:
  • Much of chopin's music exploits what texture?
    10·1 answer
  • Who was one of the first artists to bring hip-hop into the mainstream music market?
    8·2 answers
  • A local art gallery keeps information on its customers regarding their preferences for certain artists as well as the style of a
    13·1 answer
  • Describe Jan van Eyck’s painting technique and style. (site 1)
    10·1 answer
  • If you wanted to mimic the light coming through a window in a theater production what could you use?
    10·1 answer
  • Please help 5.00 discussion assignment function of a building
    8·1 answer
  • Go grab a glass of water,
    12·1 answer
  • Dear All bully on here
    5·2 answers
  • Look at the painting below. Name the painting and the artist and describe its important features.
    12·1 answer
  • MARKED THE BRANILEST
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!