Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What is the output of the following codes? a. function answer = foo(a, b, c) answer = a; if b > answer answer = b

What is the output of the following codes? a. function answer = foo(a, b, c) answer = a; if b > answer answer = b end if c > answer answer = c; end end b. a = [ 3 6 2 9 4] c = 1 e = [] for i = a e(c)= ( a(c) + 1 ); c = c + 1; end disp (e)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions