Question: 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.

 hello please need some help to compare my results for homewor

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!