- Joined
- Jan 23, 2017
- Posts
- 1,554
- Solutions
- 2
- Reaction
- 461
- Points
- 674
- Age
- 23
#include <stdio.h>
int main() {
int a[] = {1,0,2,1,9};
int b[] = {1,1,2,1,0,1};
printf("%d", a[b[a[1]]]+a[0]);
return 0;
}
ano po ba talaga ang output dito? my answer is 1.
but when i ask chatGPT about it, why is it saying that the output is 2.
int main() {
int a[] = {1,0,2,1,9};
int b[] = {1,1,2,1,0,1};
printf("%d", a[b[a[1]]]+a[0]);
return 0;
}
ano po ba talaga ang output dito? my answer is 1.
but when i ask chatGPT about it, why is it saying that the output is 2.