How Deep the Rabbit Hole Goes, or C++ Job Interviews at PVS-Studio

void F1()
{
int i = 1;
printf("%d, %d\n", i++, i++);
}
void F1()
{
int i = 1;
int tmp = i;
i += 2;
printf("%d, %d\n", tmp, tmp);
}
void foo(std::unique_ptr<int>, std::unique_ptr<double>);int main()
{
foo(std::unique_ptr<int> { new int { 0 } },
std::unique_ptr<double> { new double { 0.0 } });
}
new int { .... };
new double { .... };
std::unique_ptr<int>::unique_ptr
std::unique_ptr<double>::unique_ptr

--

--

--

The developer, the debugger, the unicorn. I know all about static analysis and how to find bugs and errors in C, C++, C#, and Java source code.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Post content on LinkedIn in python with this unofficial Api

Community Highlight: How Timbergrove Uses InfluxDB to Offer a Smart Workplace Kit

Oracle Rest Data Service Installation on Weblogic Server

Polarr’s Engineering Principles — Part 4, Urgency

Data Modelling: Relational DB OR No-SQL.

!important facts about Bootstrap v4

Nascent GHC Proposal: Source Rewrite Rules and Optional Constraints

Want to earn a 6 figure salary? Then get ready to make a career in SAS Programming

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Unicorn Developer

Unicorn Developer

The developer, the debugger, the unicorn. I know all about static analysis and how to find bugs and errors in C, C++, C#, and Java source code.

More from Medium

C vs C++ vs C#

Sync, Async, and Multi-thread in C#

Equality Array(Data Structure tips in C#)

Java like Enums in C#