313 views

1 Answer

0 votes
0 votes
All three loops variables are independent of each other,  third loop always runs  6 times for( i = 1 , 2 , 4 , 8 , 16 , 32 )

second loop always runs 4 times ( b =  1 , 11 , 21 , 32 )

And first loop is similar to third one , it will run 6 times too.

Hence k will be inremented by 6 * 4 * 6 = 144 times.

Related questions

0 votes
0 votes
1 answer
1
Hirak asked Jun 2, 2019
1,182 views
#include<iostream using namespace std; int i=0; void a() { i+=1; cout<<i<< ".hello"<<endl; a(); } int main() { a(); }For this above code the output is only upto → 6489...
0 votes
0 votes
1 answer
2
Raj Kumar 7 asked Jul 22, 2018
623 views
Given a pointer to a node to be deleted what is the time complexity to delete a node in the circular linked list :i think answer is O(1).Am i right?
0 votes
0 votes
0 answers
3
Raj Kumar 7 asked Jul 17, 2018
598 views
The number of different directed trees with 3 nodes areA) 3B) 4C) 5D) 6I think the answer is 5 but the answer is not.
0 votes
0 votes
2 answers
4
vijju532 asked Jul 5, 2018
692 views
i am getting 4,3,4,3,8,2 is it right?????