How we sympathize with a question on StackOverflow but keep silent

int f1(){
int a=5;
short b=4;
bool a1=a;//maybe warn
bool b1=b;//maybe warn
if(a1&&b1)return 1;
return 0;
}
class M{
public:
virtual int GetAge(){return 0;}
};
class P:public M{
public:
virtual int GetAge(){return 1;}
P(){GetAge();}//maybe warn
~P(){GetAge();}//maybe warn
};

int main(){
return 0;
}

--

--

--

Co-founder of the PVS-Studio project. Microsoft MVP in the ‘Developer Technologies’ nomination and PhD in Physics and Mathematics.

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

Recommended from Medium

Introducing one of our Latest Investment in Data Monetization Platform— Ruby

FOTA to Finalize IDO Launchpads

Basic CI, CD Setup using AWS — CodeCommit, CodePipeline, & Elastic Beanstalk as deploy provider.

Raspberry Pi 4 Slots

Raspberry Pi 4 Slots

What is SelectorsHub & its Advantages and why you should be using it?

The world of Git and GitHub-Foundations

Top 10 Worst Nightmare For Programmers

A brief talk about technical debt

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
Andrey Karpov

Andrey Karpov

Co-founder of the PVS-Studio project. Microsoft MVP in the ‘Developer Technologies’ nomination and PhD in Physics and Mathematics.

More from Medium

When your focus is fading…

NullPointerException to Optional. How did we get here?

Encourage your team mates to take copy paste code from StackOverFlow(or wherever) ONLY if they…

From police officer to front-end developer at Yapoli