Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

C Books Guide and List
C++ Books Guide and List
Best Java Books

+1 vote
asked by
edited by

1 Answer

0 votes
A function is a block of code that has a name and it has a property that it is reusable i.e. it can be executed from as many different points in a C Program as required.

int sum(int x, int y)
    int ans = 0;     //holds the answer that will be returned
    ans = x + y;    //calculate the sum
    return ans        //return the answer
answered by (5.6k points) 1 7 14

Related questions

+1 vote
1 answer 2.4k views
+1 vote
2 answers 620 views
0 votes
1 answer 1k views
1k views asked by carlton (4k points) 5 11 21
+1 vote
2 answers 4.3k views