PRF193_SP25_FE_117230_3641.webp
tolerant_heart

PRF193_SP25_FE_117230_3641.webp

Kizspy | Question: 27
(Choose 1 answer)
PUUVERFLOW.com
What will be the output of the following C code snippet?
#include <stdio.h>
int factorial(int n) {
if (n <= 1)
return 1;
else
return n* factorial(n - 1);
int main() {
printf("%d", factorial(4));
return 0;
A. 4
B. 24
C. 12
D. 1

Thông tin

Category
PRF193
Thêm bởi
tolerant_heart
Ngày thêm
Lượt xem
634
Lượt bình luận
1
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom