UrbanPro

Learn C++ Language from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

What is the syntex error?

Asked by Last Modified  

Follow 2
Answer

Please enter your answer

Teacher

A syntax error is a violation of the syntax, or grammatical rules, of a natural language or a programming language. ... A syntax error is called a fatal compilation error, because the compiler cannot translate a C++ program into executable code if even one syntax error is present.
Comments

Professional with 10+ years of experience. Expert in teaching C, Java, Python, Data Structures

Syntax error is some thing like grammatical mistakes which we come across while learning ENGLISH language. The same way C/ C++ or any programming language has certain predefined set of rules, if our program doesn't comply to that rules, then we will get syntax error. For example if you miss a semi...
read more
Syntax error is some thing like grammatical mistakes which we come across while learning ENGLISH language. The same way C/ C++ or any programming language has certain predefined set of rules, if our program doesn't comply to that rules, then we will get syntax error. For example if you miss a semi colon after the end of printf or cout then it throws syntax error. As in C/ C++ compiler it is defined that printf or cout has to end with semi colon. The same way if we miss quotation marks in printf or cout or parenthesis in if condition ( or in while,for loops) the syntax error is thrown as it is violating C/C++ grammar. read less
Comments

Tutor

in which you mispell the correct command not write it properly
Comments

Syntax error means you have made typo in program somewhere and the platform doesn't find the proper way to execute it. Different languages have their different rules to write or develop a program in that language and you have to follow those rules
Comments

when u compile your program after you ginish writing ur code , then compiler compiles your code ( program ) & generates compile time errors that is the errors which binders compilation of your code to generate executable code i.e machine code. Syntax error is one of it where programer voilates programing...
read more
when u compile your program after you ginish writing ur code , then compiler compiles your code ( program ) & generates compile time errors that is the errors which binders compilation of your code to generate executable code i.e machine code. Syntax error is one of it where programer voilates programing rule of writing a code like semicolon at end of statement is missing, missing or extra curly braces, use of curly brace instead of square bracket during array indexing etc. ur program will not go to next level i.e execution untill you rectify such errors. read less
Comments

Expert Technical Trainer with 15 years of work experience

Syntax errors occur in computer programming languages which are similar to grammatical errors in common human readable languages
Comments

Virtual Assistant

Syntax nothing but a standard rule given by programming language.If we not following the rule than it doesn't understand what we trying to communicate with a computer.example for syntax errors SEMI COLON MISSING...etc
Comments

syntax error occur when we don't follow rule of any language. These errors are shown by the compiler. Example: No use of semicolon, missing braces, etc
Comments

M.Tech (IT)-Pursuing B.E(IT)-Mumbai CCNA,CCNP Functional Testing

The way you represent or write your code considered as default code. Whenever you need to write same methods or anything that inherits the default or base code, must match the semantics of already defined base code, anything that mismatch with base code writing style will results in a syntax error.
Comments

Computer Teacher

Syntax error means you missing some token or function. Like in c language you not enter semicolon at the end of sentence, then it gives syntax error.
Comments

View 44 more Answers

Related Questions

What is polymorphism in C++?
https://vz-3ad30922-ba4.b-cdn.net/22b3f0e4-e072-48b7-9ae6-3d65a6b4ad50/play_480p.mp4
Renu
0 0
5
What are the toughest topics in C language?
1. pointer 2. dynamic memory allocation 3. File handling
Lokayya
0 0
5
I am interested to enter IT field. But I am not from IT background. My qualification is BBM. I am planing to start with C and C++ course, but i don't have much idea about it. Can some one please let me know what is best course to start with.
if u really have interset in IT filed u better learn .net, core java, spring java, python programming languages than c and c++. but u don't know the basics programming language better going for c and c++ learning course.
Sachin
What is different between malloc and calloc?
The Diffrences are like-- malloc() takes a single argument (memory required in bytes), while calloc() needs two arguments. Secondly, malloc() does not initialize the memory allocated, while calloc() initializes...
Roopali
Is C#, C++, Python, or JS better for game development?
All languages good for gamjng. But you can make 3d games in c# uaing unity software and it's very very interesting to work on it.
Mohit
0 0
6

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

C++ Program-Working with constant using const keyword
//Header files #include<iostream.h>#include<conio.h> //Main function void main(){ //using const keyword to declare constants with a specific type const int len=10; const int br=5; const...

Why Indexing Should Start From Zero In Array ?
Why numbering should start at zero? To denote the subsequence of natural numbers 2, 3, ..., 12 without the pernicious three dots, fourconventions are open to usa) 2 ≤ i < 13b) 1 < i ≤ 12c)...

Do (pre & post)Increment and decrement operators behave differently when printed in the same and different line in C++?
Before I explain anything,I would like you to run the following program. void main() {int j =10; cout<<“j before increment =“<<j; cout<<“++j =“<< ++j; cout<<“...

C, C++, JAVA Tutor
* Program to swap two numbers using a temporary variable with each statement explained with comments * #include // headerfile for cout statement using namespace std; //...

What Are IT Industries Performance Metrics?
1. Outstanding Expectation: Eligible to get Promotion easily and good salary hike. Always preferrable to go abroad. 2. Exceed Expectation: Can get Promotion as per schedule of company with good salary...

Recommended Articles

Introduction C++ is an excellent programming language and many of the applications are written in C++ language. It has generic, object-oriented & imperative programming features, and also provides facilities for low-level memory manipulation. Successor of C language, it is an OOP (object oriented programming) language...

Read full article >

Almost all of us, inside the pocket, bag or on the table have a mobile phone, out of which 90% of us have a smartphone. The technology is advancing rapidly. When it comes to mobile phones, people today want much more than just making phone calls and playing games on the go. People now want instant access to all their business...

Read full article >

Microsoft Excel is an electronic spreadsheet tool which is commonly used for financial and statistical data processing. It has been developed by Microsoft and forms a major component of the widely used Microsoft Office. From individual users to the top IT companies, Excel is used worldwide. Excel is one of the most important...

Read full article >

Hadoop is a framework which has been developed for organizing and analysing big chunks of data for a business. Suppose you have a file larger than your system’s storage capacity and you can’t store it. Hadoop helps in storing bigger files than what could be stored on one particular server. You can therefore store very,...

Read full article >

Looking for C++ Language Classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for C++ Language Classes?

The best tutors for C++ Language Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn C++ Language with the Best Tutors

The best Tutors for C++ Language Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more