Quiz-2
One Subscription, For Everything
The new cool way of learning and upskilling -
One Subscription access everything
Get Access to PrepInsta Prime
from FAANG/IITs/TOP MNC's
PrepInstaPrime
Get over 200+ course One Subscription
Courses like AI/ML, Cloud Computing, Ethical Hacking, C, C++, Java, Python, DSA (All Languages), Competitive Coding (All Languages), TCS, Infosys, Wipro, Amazon, DBMS, SQL and others.
Comments
Login/Signup to comment
can anyone explain this code?!!
#include
using namespace std;
int main()
{
for (int x = 10; x >= 0; x–) {
int z = x & (x >> 1);
if (z)
printf(“%d “, x); } }
#include
using namespace std;
int main()
{
for (int x = 10; x >= 0; x–) {
int z = x & (x >> 1);
if (z)
printf(“%d “, x);
}
}
why is the explanation so dumb and not at all satisfying. the pseudo code question given below executes in 64 steps, prep insta is supposed to tell a logic or a shortcut- how to solve this code snippet in less than 2 min rather it has given a explanation stating “x is decremented here…” even a beginner knows that much… finally most of the explanations are dumb,frustrating, not at all satisfying and most are directly copied from geek for geeks without any efforts from prepinsta.
x = 1
n = 200
while(n>100):
x=x-n
n=n-5
print(x)