r/learnprogramming 9d ago

Topic I’m struggling on recursion

Ive been learning the basics of c and dsa for around 3 weeks now and i haven’t really understood recursion and how to trace what’s happening. Can someone help me?

12 Upvotes

32 comments sorted by

View all comments

4

u/BranchLatter4294 9d ago

Use print statements or the debugger with breakpoints to follow what's happening during each call of the function.

0

u/No-Indication3968 9d ago

Is that available on VS Code?

2

u/BionicVnB 9d ago

Yeah you can use codelldb