Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Filter
souveekp
Wall
Recent activity
All questions
All answers
Exams Taken
All Blogs
Answers by souveekp
9
votes
1
GATE CSE 1999 | Question: 17
Consider the following program fragment in the assembly language of a certain hypothetical processor. The processor has three general purpose registers $R1, R2$and $R3$. The meanings of the instructions are shown by comments (starting with ;) after the instructions. ... the values n, 0, and 0 respectively. What is the final value of $R3$ when control reaches $Z$?
Consider the following program fragment in the assembly language of a certain hypothetical processor. The processor has three general purpose registers $R1, R2$and $R3$. ...
5.8k
views
answered
Sep 29, 2020
CO and Architecture
gate1999
co-and-architecture
machine-instruction
normal
descriptive
+
–
0
votes
2
time complexity
What is the time complexity of fun()? int fun(int n) { int count = 0; for (int i = 0; i < n; i++) for (int j = i; j > 0; j--) count = count + 1; return count; }
What is the time complexity of fun()?int fun(int n) { int count = 0; for (int i = 0; i < n; i++) for (int j = i; j 0; j ) count = count + 1; return count; }
6.2k
views
answered
Sep 1, 2020
Algorithms
algorithms
time-complexity
+
–
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register