Nguyễn Vân Anh
New member
What is the output of the given code?
A. 12.2
B. 23.3
C. null
D. 23
Code:
void setup() {
double x=11.3;
int s=(int)x+12;
Serial.begin(9600);
Serial.print(s);
}
void loop() {
//Do nothing.
}
B. 23.3
C. null
D. 23