Login
Register
@
Dark Mode
Profile
Edit my Profile
Messages
My favorites
Register
Activity
Q&A
Questions
Unanswered
Tags
Subjects
Users
Ask
Previous Years
Blogs
New Blog
Exams
Dark Mode
Programming
Overflow04
asked
in
Programming
Oct 2, 2022
148
views
0
votes
0
votes
I am getting 5 as output, but answer is 4,please verfiy
programming-in-c
test-series
Overflow04
asked
in
Programming
Oct 2, 2022
by
Overflow04
148
views
answer
comment
Follow
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
1
vote
1
vote
I’m also getting answer 5, as in last step of recursion tree lv = 4 and rv = 3 , so max of them is lv and the value returned by it is 5.
Philosophical_Virus
answered
Oct 2, 2022
by
Philosophical_Virus
comment
Follow
share this
1 comment
by
Overflow04
commented
Oct 2, 2022
reply
Follow
share this
thanks for the confirmation ,test series answer is wrong(I guess).
1
1
Please
log in
or
register
to add a comment.
← Previous
Next →
← Previous in category
Next in category →
Related questions
0
votes
0
votes
1
answer
1
Overflow04
asked
in
Programming
Jan 25
65
views
Programming
Someone please explain. Function of ‘^’
Overflow04
asked
in
Programming
Jan 25
by
Overflow04
65
views
programming-in-c
self-doubt
test-series
0
votes
0
votes
1
answer
2
Overflow04
asked
in
Programming
Oct 2, 2022
119
views
Programming and DS
#include <stdio.h> int main(){ int a[] = {5,3,7,2,4}; int *p = &a[3]; p -= *p; printf("%d ",*p); return 0; } output is 3. Why 2 * sizeof(int) is doene.????
Overflow04
asked
in
Programming
Oct 2, 2022
by
Overflow04
119
views
data-structures
test-series
programming-in-c
1
vote
1
vote
2
answers
3
ramakrushna
asked
in
Programming
Dec 26, 2021
295
views
Applied Test series: C-programming
I know the answer but need a good explanation for this question. Can anyone help. Thanks!
ramakrushna
asked
in
Programming
Dec 26, 2021
by
ramakrushna
295
views
test-series
programming-in-c
operators
0
votes
0
votes
1
answer
4
rahul sharma 5
asked
in
Programming
Dec 18, 2016
318
views
[Programming/Min heap] Test Series
A complete binary min-heap is made by including each integer in [1,1023][1,1023] exactly once. The depth of a node in the heap is the length of the path from the root of the heap to that node. Thus, the root is at depth 0. The maximum value of integer at a. ) First node of depth 8 is? b.) First node of depth k is?
rahul sharma 5
asked
in
Programming
Dec 18, 2016
by
rahul sharma 5
318
views
test-series
algorithms
programming-in-c
Subscribe to GATE CSE 2023 Test Series
Subscribe to GO Classes for GATE CSE 2023
Quick search syntax
tags
tag:apple
author
user:martin
title
title:apple
content
content:apple
exclude
-tag:apple
force match
+apple
views
views:100
score
score:10
answers
answers:2
is accepted
isaccepted:true
is closed
isclosed:true
Recent Posts
From GATE to Australia
DRDO Previous Year Papers
From Rank 4200 to 64: My Journey to Success in GATE CSE Exam
What are the key things to focus on during the final 10-15 days before the GATE exam to improve performance?
All India GO Classes Mock test
Subjects
All categories
General Aptitude
(2.5k)
Engineering Mathematics
(9.3k)
Digital Logic
(3.3k)
Programming and DS
(5.9k)
Programming
(3.9k)
DS
(1.9k)
Algorithms
(4.6k)
Theory of Computation
(6.7k)
Compiler Design
(2.3k)
Operating System
(5.0k)
Databases
(4.6k)
CO and Architecture
(3.8k)
Computer Networks
(4.6k)
Non GATE
(1.3k)
Others
(2.4k)
Admissions
(649)
Exam Queries
(842)
Tier 1 Placement Questions
(17)
Job Queries
(74)
Projects
(9)
Unknown Category
(853)
Recent Blog Comments
This guy was just exceptional. I remember hearing...
Inspirational! Found the right Blog at the right...
That was my second attempt. I already had notes,...
Sorry to break the news, but: I see a few flaws...
bhai mujhe bhi bula lo australia......mai bhi...
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy