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 are the toughest topics in C language?
1. pointer 2. dynamic memory allocation 3. File handling
Lokayya
0 0
5
What are the benefits of learning C++?
Its a programming language helps to increase dicision making and logic reasoning power
Sunita
What is iostream.h?
It is a header file, which is needed to be included in C++ program to perform input output operations.
Monisha
what is copy constructor?
The copy constructor is a constructor which creates an object by initializing it with an object of the same class, which has been created previously. The copy constructor is used to: Initialize one object...
Hiteshwar
What is difference between object oriented procedure and object oriented programming?
i.basic building block for procedure orientation is functions while for OOPS its objects.. ii.pop follows top-down hierarchy while opps its just opposite. iii.pop lacks encapsualtion and has acesses...
Madhuranjan

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

Ask a Question

Related Lessons

Importance Of Function Prototype In C
Function prototype tells compiler about number of parameters function takes, data-types of parameters and return type of function. By using this information, compiler cross checks function parameters and...

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...

C++ Fundamentals - Introduction
Introduction to C++ C++ CHARACTER SET It is the set of all valid characters that a language can recognize . It represents any letter, digit, or any other sign .C++ character set: LETTERS...
R

File Handling in C++ : Lesson 1 Data Persistence
Data persistence refers to the existence of data in the program. In other words, it means the life of data. Data is the most significant part of a program and it must be stored properly and easily retrieved...
J

Magic in C=> OFFSET OF MACRO in C [offsetof(TYPE, MEMBER)]
Here I am going to discuss an exciting macro in C. It will give you offset of a member within a structure. NULL or 0 address is typecasted to TYPE first. It won't result in segmentation fault as we are...

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