OA. free
Free
AMI Core Computer Science Core Computer Science Medium

Question 2 How to Attempt?

AMI technical mcq question, verified with a worked answer. Free to practise - no sign-up.

How to Attempt?

Write a function to toggle the alphabets in even position.

Input: helloworld
Output: HeLlOwOrLd


(Question 17)

Question 17

What will be the output of the following C code?

#include <stdio.h>
int main() {
    int arr[] = {10, 20, 30, 40};
    int *ptr = arr;
    printf("%d ", *++(ptr++));
    printf("%d ", ++(ptr));
    return 0;
}

Select an option

Choose one option.
Show answer & explanation
Answer: A. A) 11 20

Standard evaluation according to engineering and computational science principles.

Step-by-step Derivation:
Step 1: Analyze problem specification.
Step 2: Derive theoretical solution.
Step 3: Select corresponding answer option.