It's a C language array question

Asked 2 years ago, Updated 2 years ago, 98 views

int array1[100] int array2[100]

When there are two arrays like this

Why does a compilation error occur when you do array1 = array2 in the large number sentence?

What should I do to make it normal without any errors?

c array compiler-errors

2022-09-22 19:19

1 Answers

array is a pointer array that points to the address of the first array. There is an error when I ask you to put int type (address value goes into int type) in the pointer variable

*array1 = *array2

Do it


2022-09-22 19:19

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.