Quiz-2
Analytics below shows your performance in various Mocks on PrepInsta
Your average Analytics for this Quiz
Rank
-
Percentile
0%
Related Banners
Check out our instagram
PrepInsta Prime
Get over 200+ course One Subscription
PrepInsta Prime
Get over 200+ course One Subscription
Get PrepInsta Prime Subscription
Companies
TCS, Cognizant, Delloite, Infosys, Wipro, CoCubes, KPMG, Amazone, ZS Associates, Accenture, Congnizant & other 50+ companies
Programming
Data Structures, Top 500 Codes, C, C++, Java Python & other 10+ subjects
Skills
Full Stack Web Development, Data Science, Machine Learning, AWS Cloud, & other 10+ skills and 20+ projects
Companies
TCS, Cognizant, Delloite, Infosys, Wipro, CoCubes, KPMG, Amazone, ZS Associates, Accenture, Congnizant & other 50+ companies
Programming
TCS, Cognizant, Delloite, Infosys, Wipro, CoCubes, KPMG, Amazone, ZS Associates, Accenture, Congnizant & other 50+ companies
Skills
TCS, Cognizant, Delloite, Infosys, Wipro, CoCubes, KPMG, Amazone, ZS Associates, Accenture, Congnizant & other 50+ companies
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)