13. Given the code
Control structures
Control structures are block of statements that analyze the value of variables and determine the flow of execution based on those values. When a program is running, the CPU executes the code line by line. After sometime, the program reaches the point where it has to make a decision on whether it has to go to another part of the code or repeat execution of certain part of the code. These results affect the flow of the program's code and these are called control structures.
Switch Statement
The switch statement is a key feature that is used by the programmers a lot in the world of programming and coding, as well as in information technology in general. The switch statement is a selection control mechanism that allows the variable value to change the order of the individual statements in the software execution via search.
![13. Given the code
char* myFunc (char *ptr, int n)
{
ptr += n;
return ptr;
}
int main()
{
char x[100] = Code1;
char *y.
int n = Code2;
y = myFunc (x, n);
printf ("%s\n", y);
return 0;
}
where Code1 and Code2 are not given. Which of the following does not give the output ABCDEF
Code1 is "XYZABCDEF" and Code2 is 3
Code1 is "ABCABCDEF" and Code2 is 3
Code1 is "ABCDEFXY" and Code2 is 6
Code1 is "ABCDEF" and Code2 is 0](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F434916cd-dadc-412a-ad75-437b4113a9e1%2F743e1c97-757b-4af3-8783-8211a22c98e5%2Fz6ltegq_processed.png&w=3840&q=75)

Step by step
Solved in 4 steps with 1 images









