Computer Science, asked by ridarajpoot57, 5 months ago

07. What is the difference between command and statements?​

Answers

Answered by Zahirrrrrr
6

A command is what other languages call a function, routine or reserved word, and can be defined by the "proc" command or in C or whatever. A statement is an invocation of a command. Using traditional definitions, a statement in Tcl is a command followed by zero or more arguments.

❤️❄️☘️✨

Answered by XxHATERxX
15

Answer:

  1. statement is defined as having a structure in which there is typically a Subject, followed by a verb and then a further unit such as a Direct Object. Commands also have a special structure in that they typically lack a Subject. Examples are: Eat your dinner, Be quiet, Open the door, etc.
  2. Commands and statements are both executable instructions. The difference between commands and statements is that commands are generally executed in the direct mode, or command level of the interpreter. When GW-BASIC is invoked and the GW-BASIC prompt, Ok, appears, the system assumes command level.
  3. A command is what other languages call a function, routine or reserved word, and can be defined by the "proc" command or in C or whatever. A statement is an invocation of a command. Using traditional definitions, a statement in Tcl is a command followed by zero or more arguments.

Explanation:

hope you appreciate this ans

Similar questions