368 views

1 Answer

Related questions

1 votes
1 votes
2 answers
1
0 votes
0 votes
0 answers
2
Mizuki asked Dec 9, 2018
310 views
Are these return types valid for a function in C? Would any of these result in error, or simply will be ignored?1 const void f()2 extern void f()3 static void f()
2 votes
2 votes
3 answers
3
Laahithyaa VS asked Sep 9, 2023
934 views
. What will be the value returned by the following function, when it is called with 11?recur (int num){if ((num / 2)! = 0 ) return (recur (num/2) *10+num%2);else return 1...
1 votes
1 votes
3 answers
4
jverma asked May 23, 2022
1,062 views
#include <stdio.h>int f(int n){ static int r = 0; if (n <= 0) return 1; r=n; return f(n-1) + r;}int main() { printf("output is %d", f(5)); return 0;}Ou...