Question
#include
int sum(int,int);
int main()
{
int a=5, b=10, mysum;
mysum = sum(a,b);
printf("SUM=%d ", mysum);
printf("SUM=%d", sum(10,20));
return 0;
}
int sum(int i, int j)
{
return (i+j);
}
a.
SUM=15 SUM=30
b.
SUM=30 SUM=15
c.
SUM=15 SUM=15
d.
SUM=30 SUM=30
Posted under C Programming
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. What is the output of C Program with functions?
Similar Questions
Discover Related MCQs
Q. Arguments passed to a function inC language are called ___ arguments.
View solution
Q. Arguments received by a function in C language are called ___ arguments.
View solution
Q. Choose a corrects statement about C language function arguments.
View solution
Q. Choose a correct statement with C Functions.
View solution
Q. Choose a non Library C function below.
View solution
Q. What is the default return value of a C function if not specified explicitly?
View solution
Q. What are the data type of variables that can be returned by a C Function?
View solution
Q. A recursive function can be replaced with __ in c language.
View solution
Q. A recursive function is faster than __ loop.
View solution
Q. A recursive function without If and Else conditions will always lead to
View solution
Q. What is the C keyword that must be used to achieve expected result using Recursion?
View solution
Q. How many functions are required to create a recursive functionality?
View solution
Q. Choose a correct statement about Recursive Function in C language.
View solution
Suggested Topics
Are you eager to expand your knowledge beyond C Programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!