int
is a data type that represents integer values.float
is a data type used for floating-point numbers (i.e., numbers with decimals).char
is a data type used to store a single character.a + b
where a = 5
and b = 3.14
?Answer: The result would be a float, and the output would be 8.14
. for
loop to print numbers from 1 to 5.Recursion:
Explanation: This is a recursive function to compute the factorial of a number.Decision Making:x
is a local variable to the function foo
.x
is not accessible outside of foo
due to its scope being local.n
is the number of elements in the array.n
elements.