Nguyễn Ngọc Huỳnh
New member
What is the purpose of the following code?
A. Search
B. Sort
C. Delete
D. Append
Code:
void setup() {
Serial.begin(9600);
}
void loop() {
int a[4]={1,2,3,4};
int search_item=2;
int i;
for(i=0;i<4;i++) {
if(a[i]==search_item) {
Serial.print(“Found!”);
}
}
}
B. Sort
C. Delete
D. Append