Quiz Yourself on Functions
We're done with functions. Let's refresh what we've learned with this quiz. Good luck!
1
void sum(int a, int b) {
int sum = a + b;
return sum;
}
int main() {
int x = 3, y = 4;
printf("%d", sum(x, y));
}
What would be printed to the screen?
A)
7
B)
Compilation Error
C)
3, 4
Question 1 of 20 attempted
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy