🚀 Hurry! Offer Ends In
00 Days
00 Hours
00 Mins
00 Secs
Enroll Now
X

निम्नलिखित Arduino कोड का आउटपुट क्या होगा?

What will be the output of the following Arduino code?

 #define X 10;
 void setup(){
 X=0;
 Serial.begin(9600);
 Serial.print(X);
 }
 void loop(){
 //Do nothing…
 }
A
0xAB
B
0xa
C
0
D
Error
Explanation

The code tries to change the value of X, which is defined as a constant using #define. Constants cannot be reassigned, so the line X = 0; causes a compilation error.

Correct Answer:

(D) Error.

Correct Answer: D) Error

Latest Updates