What will be the output of the following code?
int main() { int i=25; int k=i%4; print("%d\n",k); }
void main() { int x = 5*6/2 +8; printf("%d",x); return 0; }
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… }
int main() { int a=5; while(a=123) { printf("RABBIT\n"); } printf("GREEN"); return 0; }
What is the output of “pin 1” if “pin2” is sent “1011” where 1 is 5V and 0 is 0V?
int pin1 = 12; int pin2 = 11; void setup() { pinMode(pin1, OUTPUT); pinMode(pin2, INPUT); Serial.begin(9600); } void loop() { if(digitalRead(pin2)==1) { digitalWrite(pin1,LOW); } else if(digitalRead(pin2)==0) { digitalWrite(pin1,HIGH); } }
What will be the output of the following piece of code?
#include <stdio.h> int main() { int i; for(i=0;i< 8; i++); printf("%d",i); return 0; }
What is the output of C program with functions?
int main() { int a = 0; printf("AJAY"); return 1; print("VIJAY"); return 1; }
What is the output of C Program?
int main() { int k=10; while(k <= 12) { printf("%d", k); k++; } return 0; }
if a voltage of 5V is applied to the pin equivalent to the A0 pin on an Arduino UNO, what is the output of the programmed below?
void setup() { Serial.begin(9600); pinMode(A0, INPUT); } void loop() { int s = analogRead(A0); Serial.println(s); }