3. Consider the following code: int add(int a, int b) { int c; c=a+b; return c; } int main() { int x=10,y=25,z; z=add(x,y); cout<<z; return 0; } a. Write formal and actual arguments in the above code. b. Write output of the above code. c. Which type of function call is used in the above code?Explain. (March 2020 score 5
8. Identify the built in C++ function for the following cases : (i) to convert -25 to25. (ii) compare ‘computer’ and ‘COMPUTER’ ignoring cases. (iii) to check the given character is digit or not. (iv) to convert the character From ‘B’ to ’b’. (v) to find the square root of 64 or a number. (March 2019 Score )
12. Consider the following function definition in C++ : void sum(int a, int b=10, int c=20) { int sum=a+b+c; cout<<sum; } Write the output of the following function call : (a) sum(1,2,3); (b) sum(2,3); (c) sum(3); (June 2018 Score 3)