Day 6/30 – Arrays ≠ Pointers Today was about memory clarity. arr is not a pointer. But it behaves like one. • arr vs &arr[0] • *(arr + i) == arr[i] • Why array name can’t be reassigned The more I understand memory, the fewer “magic” errors I make. 6 days in. Getting sharper. #30DaysOfCode #Cplusplus #DSA #Programming #BuildInPublic
Arrays vs Pointers in C++
More Relevant Posts
-
DAY->12 Solved Running Sum of 1d Array on LeetCode today. Implemented the solution using the Prefix Sum technique to compute the cumulative sum of elements efficiently. -> Time Complexity: O(n) -> Space Complexity: O(n) All 54/54 test cases passed with 0 ms runtime. Small problems like this help strengthen fundamentals in arrays and prefix sums, which are widely used in many algorithmic problems. #LeetCode #DSA #CodingJourney #Programming #Cplusplus #ProblemSolving
To view or add a comment, sign in
-
-
Mastering Rust's collection types is crucial for writing efficient, memory-safe code. Our latest article breaks down when to use Vec, HashMap, HashSet, and other core collections, helping you make informed decisions based on performance and use case requirements. 📚 Learn the practical differences and optimize your Rust applications: https://lnkd.in/ew9F9uXJ #RustLang #Programming #SoftwareEngineering
To view or add a comment, sign in
-
day 5/50 of #50DaysofLeetCodeChalange 🚀 problem - Find Peak Element (No. 162) approach-Use binary search: compare nums[mid] with nums[mid+1] and move toward the side that is increasing, since a peak always exists in that direction. #DSA #CodingJourney #50DaysOfCode #LeetCode #CPlusPlus #Programming
To view or add a comment, sign in
-
-
Linked list in 10 seconds: Each node = value + pointer to next. Insert anywhere = O(1). Random access = O(n). Use it when you insert/delete a lot. Skip it when you need fast index lookups. That's the whole trade-off. GeeksforGeeks GeeksforGeeks GATE #DSA #LinkedList #DataStructures #Programming
To view or add a comment, sign in
-
Synchronize properties across dynamically instantiated QML elements, using a C++ singleton that acts as a message broker and recursive signal-slot connections. This design enables flexible and scalable value synchronization across components, with minimal coupling between UI and logic. Read on: https://lnkd.in/e7ia5ysA #QtDev #QML #Cpp #CPlusPlus #Programming
To view or add a comment, sign in
-
-
Continuing my C++ learning journey, I recently explored the concept of Diamond Inheritance, an important scenario in multiple inheritance. In this concept, a class inherits from two classes that both inherit from the same base class, forming a diamond-shaped inheritance structure. I also learned how virtual base classes are used to resolve the ambiguity that arises when the base class is inherited multiple times. This helped me understand how C++ handles complex inheritance structures and how ambiguity problems are resolved in object-oriented design. Step by step, continuing to strengthen my understanding of advanced C++ concepts. #CPP #ObjectOrientedProgramming #Programming #SoftwareDevelopment #LearningJourney
To view or add a comment, sign in
-
-
16 Mar 2026 -> Practiced some more problems related to recursion. -> Understood how this can work as Loops. #cpp #programming #LearninginPublic #DevJourney
To view or add a comment, sign in
-
Another clip from my interview with Thijs Nieuwdorp: this time talking about competition in the open source "marketplace". I learned a lot about the fine art of benchmarking, the importance of accurate comparisons for the team at Polars and the value of learning from other open source projects. Check it out! #Polars #opensource #AUC #programming #Pandas
To view or add a comment, sign in
-
Learned core concepts of Pointers, including memory addressing, pointer arithmetic, and how arrays are accessed internally. Understanding how data is stored and accessed at a low level improves coding clarity 🚀 Rohit Negi CoderArmy #DSA #Programming #Pointers #LearningJourney
To view or add a comment, sign in
-
-
Part 3 (Function Arguments ⚡ Clean Code Chapter 3 – Part 3 (this one hurts): Ideal number of arguments in a function? 0 → Perfect 1 → Good 2 or more → Avoid as much as possible Boolean flags as arguments = code smell. Example: processOrder(order, true) → nobody knows what true means. Better: processOrderAndSendEmail(order) Or group related arguments into a class (Point center instead of x, y) Fewer arguments = easier to read and test. What’s the highest number of arguments you’ve ever put in one function? #CleanCode #CleanCodeTips #Programming
To view or add a comment, sign in
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development
Well done 👍✅