Company: Cisco
Difficulty: easy
This is a single multiple-choice question from the C programming section of the assessment. Q1. What is the output of the following C program? int foo(int x) { if (x <= 0) return 0; else return foo(x - 2) + x; } int main() { printf("%d", foo(6)); return 0; } 0 6 10 12 Input format There is no input. Standard input is empty. Output format Print a single line containing the option number (an integer from 1 to 4) you have chosen.