answersLogoWhite

0

How the program statement and code are related?

Updated: 8/17/2019
User Avatar

Wiki User

14y ago

Best Answer

A statement in your program is part of the code. In a low-level programming language, a statement will map directly to a single CPU instruction. In a high-level programming language, a statement is the smallest element of the language's syntax.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How the program statement and code are related?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What command statement terminates the qbasic program?

END '...END of program/halt program code execution. *NOTE*: There should be only 'one' END statement written inside of a QBASIC program. I have seen example code where they use multiple END statements; this is wrong!


What Visual Basic command terminates a running program?

...the END statement. Example code... END


In order to program HTML code do you need an expensive program?

In order to code HTML you do not need an expensive program. HTML can be coded in Notepad if you want to. I recommend Komodo Edit. It is a free program that I use to code. You can download it from the link in the "Related Links" section.


Why goto in c is a bad command?

A 'goto' statement immediately moves the execution of code to another part of the program. This makes the code difficult to follow and to debug. It is better practice to use If-then-else constructs to structure the program code.


What do you mean by deadcode elimination?

In compiler theory, dead code elimination is a compiler optimization used to reduce program size by removing code which does not affect the program. Dead code includes code that can never be executed (unreachable code), and code that only affects dead variables, that is variables that are irrelevant to the program. Consider the following example written in C. int foo() { int a = 24; int b = 25; /* Assignment to dead variable */ int c; c = a


What is a possible reason why comment statement are used in program?

To help make the code more readable / understandable. It helps when sharing the code so someone can see whats going on.


What is a final catch statement?

A "final catch" or a "try catch" statement is an exception (error) handling statement that will try to run the code between the final/try and "catch". If an error has been encountered, then the computer will proceed to the catch portion of the statement to prevent the program from terminating on error.


Fill in the blank The method of the allows you to combine related conditional statements?

The method of the if...else statement allows you to combine related conditional statements. This statement provides a way to execute different blocks of code based on whether a specified condition is true or false.


How do you create a program that will display output?

It must use a function with a "return" statement. Or you could output via console. (.NET CODE(C#)) Console.WriteLine("Output.");


Any violation in the syntax of a program statement is called logic error?

No. A violation in the syntax of a program statement is called a syntax error.


How do you develop a tic tac toe program in java?

See related links for sample code and step-by-step Java tutor on how to develop a tic-tac-toe program.


Is it true that go to statement passes control to the next iteration of the enclosing iteration statement in which it appears?

The goto causes the program to jump to the next code line following the label.if (on_tv == survivor)goto CHANGE_CHANNEL;....................CHANGE_CHANNEL:foo(); /* foo is the next line of code following the label named CHANGE_CHANNEL:*/