logo

Crowdly

Kas bus atspausdinta ekrane? #include <stdio.h> int suma(int A[], int n) {...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Kas bus atspausdinta ekrane?

#include <stdio.h>

int suma(int A[], int n)

{

  int sum(0);

  for (int i = 0;i<n;i++) sum += A[i];

    A[0] = 100;

  return sum;

}

int main()

{

  int A[] = { 1,2,3 }, s(0);

  s = suma(A, 3);

  printf("%d\n", A[0]);

  return 0;

}

More questions like this

Want instant access to all verified answers on moodle.vilniustech.lt?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!