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

please tell me the best book for c programming language
LET US C by Yashwant Kanetkar. This book is very useful to improve the practical Knowledge. For Theory - Programming in C by Balagurusamy
Sunil
What is called 'nested loops' in C++?
These are those loops in which one loop executes inside another loop. For example for loop for(int i=1,i=10,i++) { for(int j=1, j<=i,j++) { } } the second loop is the nested for loop.
Harikrishnan
What are the toughest topics in C language?
1. pointer 2. dynamic memory allocation 3. File handling
Lokayya
0 0
5
i am a student of 11th class and i want to make my future in C++ is this possible i am take arts inn 11th class
Definitely.. but you should be flexible moving to java/ other languages as well.. requirement/ demand keep changing in software. i can do the needful.. with 18+ yrs exp in working on live projects...
Rajneesh
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

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

Ask a Question

Related Lessons

Is It Fine To Write “void main()” Or “main()” In C/C++?
The definition: void main() { /* ... */ } Is not and never has been C++, nor has it even been C. See the ISO C++ standard 3.6.1 or the ISO C standard 5.1.2.2.1. A conforming...

Static and dynamic libraries
A library is a package of code that is meant to be reused by many programs. A static library (also known as an archive) consists of routines that are compiled and linked directly into your program. When...

Programing Languages Learning Tricks
You want to learn that new language or library or framework as soon as possible, right? That’s understandable. Fortunately, there are a handful of tips that can help you to better retain all of that...

Harshal G.

0 0
0

C++ Program-Factorial
//Header files #include<iostream.h>#include<conio.h> //Main function void main(){ int num,i; long factorial=1; //Function for clearing screen clrscr(); cout<< "Enter a number:";...

Definite book guides for C++
This post attempts to collect the few pearls among the dozens of bad C++ books. Unlike many other programming languages, which are often picked up on the go from tutorials found on the internet, only...

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