+ 1
Which kind of error will occur when, we use C-language command on C++?
Like printf() in place of cout<<; scanf() in place of cin<<.
3 Antworten
+ 2
You can use the C standard functions in C++ so long as you include the right headers. Otherwise you'll get a compilation error
+ 1
Here is an example of C code inside C++
https://code.sololearn.com/c8BaPFZ1bjhx/?ref=app
0
C standard functions yes, but you can run into errors when trying to write C in C++ because of some incompatibilities.
An obvious one is that C++ has more reserved keywords.
If you like reading:
http://david.tribble.com/text/cdiffs.htm