Our website uses cookies to enhance your browsing experience.
Accept
to the top
close form

Fill out the form in 2 simple steps below:

Your contact information:

Step 1
Congratulations! This is your promo code!

Desired license type:

Step 2
Team license
Enterprise license
** By clicking this button you agree to our Privacy Policy statement
close form
Request our prices
New License
License Renewal
--Select currency--
USD
EUR
* By clicking this button you agree to our Privacy Policy statement

close form
Free PVS‑Studio license for Microsoft MVP specialists
* By clicking this button you agree to our Privacy Policy statement

close form
To get the licence for your open-source project, please fill out this form
* By clicking this button you agree to our Privacy Policy statement

close form
I am interested to try it on the platforms:
* By clicking this button you agree to our Privacy Policy statement

close form
check circle
Message submitted.

Your message has been sent. We will email you at


If you do not see the email in your inbox, please check if it is filtered to one of the following folders:

  • Promotion
  • Updates
  • Spam

Webinar: Evaluation - 05.12

>
>
>
C++

Posts: C++ articles

Feb 20 2024
Why it is bad idea to check result of malloc call with assert
Andrey Karpov
The pointer returned by malloc needs to be checked before use. Using the assert macro to check the pointer would be wrong. In this article, we'll investigate why this is a bad programming...
...
Feb 06 2024
Shall we check pointer for NULL before calling free function?
Andrey Karpov
The short answer is no. However, since this question keeps popping up on Reddit, Stack Overflow, and other websites, it's time to address the topic. There are a lot of interesting things to...
...
Subscribe to the newsletter
Want to receive a monthly digest of the most interesting articles and news? Subscribe!
* By clicking this button you agree to our Privacy Policy statement
Feb 01 2024
Qt Creator* in search of Qt Creator bugs
Mikhail Gelvikh
Strange things happen: for almost a year, PVS-Studio has a plugin for Qt Creator. However, we haven't yet published a good old article with the IDE check. We've made amends and invite you to see...
...
Jan 26 2024
Off we go! Digging into the game engine of War Thunder and interviewing its devs
Anton Tretyakov
As Yuri Gagarin once said, "In the future, we will fly, we will fly a lot". To some extent, Gaijin's Dagor Engine makes these flights possible. Let's get a glimpse of the engine's innards and...
...
Dec 20 2023
A hard quiz to crack for C++ programmers by Sergei Kushnirenko
Boris Novoselov
Hello, fun seekers and brainstorming enthusiasts! It's the PVS-Studio team. Now you have an opportunity to pass a new awesome quiz on our website. It has challenging questions from the...
...
Dec 19 2023
New Year's Eve show: Top 10 errors in C and C++ projects in 2023
Alexey Gorshkov
It's December, the first snow has already fallen, and it means New Year's Eve is around the corner. Ahead of the holidays, we'll show you the most interesting errors found in the code of the...
...
Dec 19 2023
Breaking down the C++ quiz by Sergei Kushnirenko
Andrey Karpov, Mikhail Gelvikh, Sergei Kushnirenko
The PVS-Studio team along with Sergei Kushnirenko prepared a quiz based on his publications. Take the quiz, challenge your focus and coding skills while looking for errors in the C++ code...
...
Dec 10 2023
30 years of DOOM: new code, new bugs
Alexey Smolskas
Today marks the 30th anniversary of the first game in the DOOM series! We couldn't miss the event. To honor the occasion, we decided to see what the code of this legendary game looks like after...
...
Nov 17 2023
Games! How they write code for SDL (+ interview with the creator)
Anton Tretyakov
Jack London once said, "You can't wait for inspiration. You have to go after it with a club". When it comes to game development, the SDL project may well be such a club. How is it made...
...
Nov 02 2023
Microsoft PowerToys: the GitHub king among C# projects with C++ errors
Artem Rovenskii
Microsoft PowerToys is a robust and useful tool. It not only simplifies some Windows scenarios but also creates new ones. It ranks as top-rated among C# projects on GitHub. Let's see how well...
...
View more Pagination arrow previous
Showing: - of 583