Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

hello please need some help to compare my results for homewor 2. 2. #include Considering the code on the right, answer the following questions. a.

image text in transcribed

hello please need some help to compare my results for homewor

2. 2. #include Considering the code on the right, answer the following questions. a. The code produces some compiler errors. Why? b. Modify the code so that it is compiled correctly indicate the modifications). c. What will be the value of index at the end of main (i.e. after calling the function eval)? d. Functions scanf and printf are not defined in the code on the right. Will this produce a compilation/linking error? Why or why not? int main() { char pot="$', index; while (index! pot) { scanf("%c", index); eval (index); } 9 void eval(char a) bra-'a'; printf ("Code of 8c is %d", a,b) return b; } 3. Regarding the code in the box answer the following questions: #include int main() { int k, i=1; a. How many times will the while loop be executed? Explain. 5 while (i

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Databases DeMYSTiFieD

Authors: Andy Oppel

2nd Edition

0071747990, 978-0071747998

More Books

Students also viewed these Databases questions

Question

3. What may be the goal of the team?

Answered: 1 week ago

Question

Is how things are said consistent with what is said?

Answered: 1 week ago

Question

Has the priority order been provided by someone else?

Answered: 1 week ago