Priyanka Profile
Priyanka

@_priyankagarg

Followers
10
Following
4
Media
2
Statuses
3

Joined January 2024
Don't wanna be here? Send us removal request.
@_priyankagarg
Priyanka
2 days
Spot the Bug: Why does this C++ code crash? 🕵️‍♂️ This compiles fine 👀 But at runtime, it gives infinite recursion. Why? (*this == other calls operator== again instead of comparing actual data. No base case. No warning.) #CPP #OperatorOverloading #Debugging
0
0
1
@_priyankagarg
Priyanka
12 days
I saw a code snippet while learning C++ today, and my initial guess was incorrect. Two major learnings were: 1. If an error occurs while creating an object, its destructor is not called 2. Class members are constructed before the constructor body, in order of declaration #cpp
0
0
3