Question: Q3. What is the output of the code shown below. Ex demonstrate you understood the algorithm. #include void dummyFunc(chan* ptr); int main(void) ( char str[50]

 Q3. What is the output of the code shown below. Ex

Q3. What is the output of the code shown below. Ex demonstrate you understood the algorithm. #include void dummyFunc(chan* ptr); int main(void) ( char str[50] = "ddddccccaaeeeesssz" dummyFunc (str); printf("%s ", str); void dummyFunc(chan* ptr) ( char curr a "ptri int num- 0 int i, j; i 1) ( ptrlj] '0' num; curr?"(ptr + num = 1; i); (ptr3)'; Hint you can explain your answer following these guidelines (not limited t -What is going on in the main function Prototype of the function dummyFunc - What are the variables used inside the function dummFunc - What is the for loop for - What is the if statement for - What is the else statement for - What is the statement after the for loop for

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!