User Defined Function Assignment
User Defined Function Assignment
[SET 1]
Question 1
Write a program using function which accept two integers as an argument and
return its sum. Call this function from main( ) and print the results in main( ).
Question 2
Question 3
Write a function that receives two numbers as an argument and display all prime
numbers between these two numbers. Call this function from main( ).
Question 4
Question 5
Write a function called zero_small() that has two integer arguments being passed
by reference and sets the smaller of the two numbers to 0. Write the main
program to access the function.
Question 6
Question 7
}
void main()
{
int a=4, b=l8;
X(a,b);
cout<< a <<,<<b;
}
Question 8
Question 9