Answer the question
In order to leave comments, you need to log in
SI and C++. Why are they so dangerous when used together?
I've heard from people that C and C++ are dangerous when paired. How dangerous can they be? What can both do. In the future I want to become an information security specialist (Information Security Specialist) will they help me if I use them together?
Answer the question
In order to leave comments, you need to log in
If the people from whom you heard this cannot explain why they are dangerous, then do not listen to these people.
So maybe you should ask those people who said this?
Because the c++ language, as it were, includes the c language. For it is its extension.
It is not very clear what it means to use them together. Potentially, I can assume that there may be vulnerabilities or bugs that appear when using only one c or c++ compiler. The dumbest example to understand that when using a different compiler, the program can work differently:
#include "stdio.h"
int main(int argc, char** argv)
{
if (sizeof('a') == sizeof(int))
printf("it is c\n");
else
printf("it is c++\n");
}
I don’t know what is dangerous in using C ++ and C (I have been writing on the pluses for 5+ years), but yes, if you don’t know about the pitfalls, you can do a lot of things.
Read Chris Kaspersky what buffer overlflow is, examples in C illustrate very clearly.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question