answersLogoWhite

0


Best Answer

If you make a sentence that can be understood but it doesn't relay what you meant then you have a semantic problem.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why program which is syntactically correct but semantics incorrect?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Differences between syntax and semantic?

syntax-it is the structure of the program.syntactic analysis checks whether the syntax is correct or not.if any of the punctuation(, ;) or ibraces are missing then the program wud b syntactically wrong... semantic-it means the meaning that the program conveys.whether the meaning is correct or not. for eg sun rises in west this sentence is syntactically right as there is no mistake of grammar bt it convey a wrong meaning as sun never rises in west.... hence it is syntactically right bt semantically wrong


Write a sample program using ASPNET explaining all the syntax and semantics of the program?

write a sample program using asp.net explaining all the syntax and semantics of the program


What is the smallest lexically and syntactically correct robot program?

Robot software is the coded commands that tell a mechanical device (known as a robot) what tasks to perform and control its actions. Robot software is used to perform tasks and automate tasks to be performed. Programming robots is a non-trivial task. Most robot programs have a similar structure. It consists of 4 major parts. Declarations and Variables Subroutines and Functions Initialization The Main Loop The smallest lexically and syntactically correct robot program is called Karell ++


Why scope resolution operator cannot be overloaded?

Generally the operators that can't be overloaded are like that because overloading them could and probably would cause serious program errors or it is syntactically not possible, For instance the sizeof operator returns the size of the object or type passed as an operand. It is evaluated by the compiler not at runtime so you can not overload it with your own runtime code. It is syntactically not possible to do. Even if it was pointer arithmetic relies on the correct value being returned by this operator since the compiler already knows how to calculate the correct value all overloading would do would be to allow you to calculate an incorrect value, something that would almost certainly lead to the program not working correctly. Scope resolution and member access operators work on names rather than values. C++ has no syntax for writing code that works on names rather than values so syntactically these operators can not be overridden. Again what useful purpose would overloading the conditional operator produce? I can think of none.


What are the different types of error that comes in c plus plus programming?

There are 3 different fundamental types of errors in ANY programming language: 1) Syntax errors: code is written incorrectly and can not be used by the computer 2) Logical errors: the code is syntactically correct, but does not do what it is supposed to do. 3) Run time errors: The code is syntactically correct, but when it is executed, the computer enters some sort of illegal state that must be handled in order to proceed, or the program will crash. Run time errors are things like running out of memory, division by zero, segmentation faults and etc...


What has the author Hing-Kai Hung written?

Hing-Kai Hung has written: 'Applications of intensional logic to program semantics' -- subject(s): Logic programming, Semantics, Programming languages (Electronic computers)


Photoshop is not the correct program to open the php files How can you remove it to use the correct file?

Assuming you're talking about incorrect default file associations in Windows XP... Right click on the PHP file. Go to Open With > Choose Program. Select Wordpad or your fav PHP IDE and tick the "Always open this type of file with this program" box.


Define Syntax Error in computer?

A syntax error is a scenario in programming where the code that is written by a programmer which is incorrect as per the language structure. For example I say the following statement in English: it is syntactically wrong: I currently in write java questions for wikianswers yesterday and tomorrow all day short. If you see the above statement, it is grammatically wrong. That is exactly what a syntax error is for a java program. It is incorrect as per the programming language specifications.


What is the difference between a semantic error and logic error?

An error in the logic of a program means that the output of the program is faulty (eg the program tell you 2+2=5). An error in semantics in a program means that the program statements are not constructed properly and the usual result of this is that the program will not compile.


What is correct - each program has or each program have?

"Each" is a singular word, so "Each program has . . ." is correct.


Which sentence is correct he contributed in organization of program or he contributed in organizing the program?

The latter one is the correct sentence by structure. The correct one is, he contributed in organizing the program.


Which component need not be addressed in a sound APF program?

Agility is incorrect. Out of possible answers: Power, speed, and agility, "None of the above" is the correct answer