answersLogoWhite

0


Best Answer

Syntax error is a kind of error when compiler does not recognize the command you are trying to use. It happens because of two reasons: first is you forgot to include required library; second is such command does not exist.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is a syntax error in c plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you remove syntax error on Casio fx-85GT PLUS Calculator?

If you have a syntax error on a Casio fx-85GT Plus calculator, you can press the or key which will give you the location of the error and you can then correct it.


Can you write plus at end of c statement?

No. That would be a syntax error. Only a right semicolon (;) can go at the end of a statement.


Is the syntax between c and c plus plus different?

Yes


What is error 601?

On a RadioShack TRS 80, It is a Syntax Error "Syntax Error 601"


Missing semicolon in c program is a compile time error?

It's a syntax error, which is detected during compilation, yes.


What is different of c language and c plus plus?

Primarily OOP support, but there are minor syntax difference. By and large anything you can do in C you can also do in C++.


What is extension part of c plus plus?

C++ Extension Name is... Syntax is: File Name.extension name. Ex: ankit.cpp


What is the syntax of printing a value in c plus plus?

std::cout<<42<<std::endl;


Any violation in the syntax of a program statement is called logic error?

No. A violation in the syntax of a program statement is called a syntax error.


Is syntax error a compilation error?

Not entirely. A compilation error can contain a syntax error, but what a syntax error actually is, is an error in how the coding is spelled. For example, say you are trying to program a router. You type in the code, of which you know it's the correct code, but receive an error. You proofread the code and notice that one or more of the words are not spelled correctly. This would be a syntax error. They can also take the form of misplacing the words in the code's syntax.


What did C plus plus add to the C language?

Object-oriented programming principals, a more consistent syntax and improved type-safety.


Bagian syntax yang di gunakan c plus plus?

C++ uses a syntax that is exactly the same as in C, with the addition of reserved words that are specific to C++. C ++ menggunakan sintaks yang persis sama seperti di C , dengan penambahan kata-kata reserved yang khusus untuk C++.