1 votes 1 votes What is the output of the following program segment? sum(n) { if (n<1) return n; else return (n+sum(n-1)); } main() { printf(“%d”, sum(5)); } 10 16 15 14 Programming and DS ugcnetsep2013ii programming-in-c + – go_editor asked Jul 21, 2016 recategorized May 24, 2020 go_editor 1.7k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes answer C 15 sh!va answered Jul 21, 2016 sh!va comment Share Follow See all 0 reply Please log in or register to add a comment.