Computer Science, asked by punithaspunith, 3 days ago

1. What is the output?

#include<stdio.h>
using namespace std;
int main()
{
for (int x = 10; x >= 0; x--) {
int z = x & (x >> 1);
if (z)
printf("%d ", x);
}

}


Answers

Answered by gadadithya
0

Answer:

10

Explanation:

while tracing, x=10 so therefore it satisfies the condition 10>>1

Similar questions