← Challenges

C: Sum Two Numbers

Write int solve(int a, int b) that returns the sum of a and b.

C challenges are always graded on an int return value, since the browser-based interpreter has no way to know your function's intended return type ahead of time.

Examples

  • solve(2, 3)5
  • solve(-1, 1)0