66. Pointer-iv

Question.6

A developer checks if two sensor readings are equal:

int temp1 = 25, temp2 = 25;
int *p1 = &temp1, *p2 = &temp2;

if (p1 == p2) {
   printf("Equal");
} else {
   printf("Not equal");
}

Both variables hold 25. What is the output?

Need Help? Refer to the Quick Guide below

Select Answer

Restart quiz!