in Programming in C
5,327 views
0 votes
0 votes
what is the difference between command and instruction
in Programming in C
5.3k views

1 comment

A command may be include one or more instructions in order to achieve the desired task.

Whereas an instruction is a single operation defined by a processor instruction set.
1
1

1 Answer

2 votes
2 votes
A command is a program(Collection of several instructions in particular order) which performs a specific operation.

Ex: grep in Linux

An Instruction is a single line code which performs an operation.

Ex: int a=10; //is an instruction

Related questions