answersLogoWhite

0


Best Answer

Syntax is defined as a set of rules governing how a language is structured, and the relationships between words, Just as in English * we don't put an adjective after a noun - "I have a car blue new" is wrong and "I have a new blue car" is correct... * and the placement of the verb affects the meaning of the sentence. "I have a new blue car" is very different from "Have I a new blue car".

So too do programming languages have rules which say how pieces of code must relate to one another, and in what sequence they must be phrased.

User Avatar

Wiki User

15y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

11y ago

This is the same as asking why it is important to know english grammar in order to write an essay.

Pseudo code or algorithms are logical representations of instructions, but in order to make the equivalent code of the algorithm "understandable" by a compiler of any language, it must be written in the exact syntax the compiler is expecting.

Since programming (just as writing) is inherently arbitrary, no IDE (programming interface) will know what you are actually writing or what it does. All they do is check if the compiler will understand the code you typed. Ultimately, your code will be translated (compiled) to machine language (assembler) and further executed as instructions directly to the processor. It is similar to what your brain is doing while reading this lines.. which is converting pictograms in ideas, images and intructions in your head. :).

So yes, it is VERY important to know the syntax. Senior programmers often will know how to code an algorithm in at least 10 languages.

This answer is:
User Avatar

User Avatar

Wiki User

9y ago

Syntax is the grammar of the language, the structure of statements.

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

You may take some help

from this site, as this site is inclined only towards C++ and C language.

(link moved to link section)

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

assigment and conditional

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is meant by syntax rules of programming language and a natural language?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is an informal language that has no syntax rules and is not meant to be compiled or executed?

pseudocode


What is meant by the phrase 'language independent' when talking about pseudo-code?

Pseudo-code is intended to be easily understood by all programmers regardless of the programming language they use. Pseudo-code is not a programming language, it's merely a way of generalising an algorithm in a program-like manner such that the semantics of the algorithm can be easily digested and converted into any language-dependant code. There is no "standard" that dictates the syntax of pseudo-code, thus it is often much more verbose than an actual programming language would be and is typically heavily commented to cater for languages that do not permit ideas to be expressed directly in code. This ensures that the same code can be utilised by any programmer, hence it is language-independent.


When a language has the capability to produce new data type is also called?

New, compared to what? I guess you meant user-defined data-types, which exist in almost every modern programming language.


What is meant by development and deployment in java programming language?

These terms are not limited to Java programming. Development refers to anything having to do with creating a program. Design and implementation fall under this category. Deployment is delivering the program to other people.


What is regular grammar of a switch in C programming language?

Perhaps you meant 'switch statement' instead of 'a switch'?Something like this: -> -> switch () -> { } -> (empty) | -> []; -> | -> case: | default: -> | break;

Related questions

What is an informal language that has no syntax rules and is not meant to be compiled or executed?

pseudocode


What are the Definitions on programming?

Programming is a term that describes the usage of a programming language. Programming languages (C++ for example) are languages that create programs, these programming languages should not be confused with scripting languages. Scripting languages are languages that are meant to be interpenetrated by programs. (Written in a programming language)


What is meant by middle level languages?

Middle language basically means that the language uses English like terms for its syntax still have got the features of Low level language. For Example:C


What is meant by the phrase 'language independent' when talking about pseudo-code?

Pseudo-code is intended to be easily understood by all programmers regardless of the programming language they use. Pseudo-code is not a programming language, it's merely a way of generalising an algorithm in a program-like manner such that the semantics of the algorithm can be easily digested and converted into any language-dependant code. There is no "standard" that dictates the syntax of pseudo-code, thus it is often much more verbose than an actual programming language would be and is typically heavily commented to cater for languages that do not permit ideas to be expressed directly in code. This ensures that the same code can be utilised by any programmer, hence it is language-independent.


What is meant by API?

An application programming interface (API) is a library of functions that a programming language provides for programmers for common tasks like file transfer, networking, and data structures.


Why does c do not accept the?

"the" is not a keyword in the C Programming Language. Perhaps you meant "const" HTH Richard Wolf Software Architect


What is meant by a system call in operating system?

A "System call" you be a function accessible from a programming language to the base hardware of the computer (eg to get the time).


What is the origin of the word Tron?

Tron. Was a command in BASIC programming language, designed to trace the path of a program to see where a glitch or programming error was located. The command "Truong" meant trace on. The counter command was troff.


What is meant by XMLHttpRequest?

web programming


When a language has the capability to produce new data type is also called?

New, compared to what? I guess you meant user-defined data-types, which exist in almost every modern programming language.


What is meant by development and deployment in java programming language?

These terms are not limited to Java programming. Development refers to anything having to do with creating a program. Design and implementation fall under this category. Deployment is delivering the program to other people.


What is meant by interpreter in programming languages?

An interpreter is programme that translates a high-level programming..