info@avatto.com
+91-9920808017
0. Consider the following C functions: int f l(int n) { if(n = = 0 || n = = 1) return n; else return (2* f1( n –1) + 3 * f1(n – 2)); } intf2 (int n) { int i; int X[N], Y[N], Z[N]; X[1] = 1; Y[1] = 2;Z[1] = 3; for( i = 2; i < = n ; i ++ ) { X[i]=Y[i-l] + Z[i-2]; Y[i]=2*X[i]; Z[i] = 3*X[i]; } return X[n] ; } f1(8) and f2(8) return the values
1661 and 1640
59 and 59
1640 and 1640
1640 and 1661
Your email address will not be published. Required fields are marked *
Report
Name
Email
Website
Save my name, email, and website in this browser for the next time I comment.
Comment
Login with Facebook
Login with Google
Forgot your password?
Lost your password? Please enter your email address. You will receive mail with link to set new password.
Back to login