Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started