Output Tracing: A) char str[20] = "Development"; str[5] = '\0'; int len = strlen(str); printf("%s", str); B) int i; for (i=0; i<9; i++) { if(i==5)…

Output Tracing:

A)

char str[20] = "Development";
str[5] = '\0';
int len = strlen(str);
printf("%s", str);

B)

int i;
for (i=0; i<9; i++) {
    if(i==5) continue;
    printf ("%d\n", i); }

From the NSDA Assistant Programmer March 2022 – Written exam, question 6 of 7.

More from this paper