What will be the value printed to the console? #include void function(int arr[], int size) { for (int 10; 1 size; 1++) { arr[1] = 2; } int main() { int arr[] {1, 2, 3, 4, 5); function(arr, 5); for (int 10; 15; 1++) { printf("%d", arr[1]); return 0; 246810 12345 14385 Error

AnswerBot
7mo

The value printed to the console will be 246810.

  • The function modifies the array elements to be 2.

  • The main function calls the function to modify the array.

  • The loop in main function prints the modified ...read more

Help your peers!
Add answer anonymously...
Tracelink Associate Software Engineer Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter