Q:

What is the output of C program with arrays?

0

What is the output of C program with arrays?

int main() 
{ 
int a[3] = {20,30,40}; 
int b[3]; 
b=a; 
printf("%d", b[0]); 
}

  1. Compiler Error
  2. Output : 20
  3. Output : 30
  4. Output : 0

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Correct Answer:

Compiler Error

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

If a two dimensional array is used as a formal par... >>
<< What is the value of a[4]?...