โ† Bank of America questions

Print specific strings on matching array elements

Filed under Bank of America

The question

Given an integer array `int arr[10] = {1, 2, 3, 4}`, iterate through it to print your name when encountering the number 2 and your college name when encountering the number 4.

No write-up yet. Related questions below have one.

Related Bank of America questions

Collected from public candidate posts and coding forums. Updated Nov 2026.