Computer Science, asked by surya518, 1 year ago

what is counter in computer

Answers

Answered by shaan67
0
A program counter is a register in a computer processor that contains the address (location) of the instruction being executed at the current time. As each instruction gets fetched, the program counter increases its stored value by 1.

shaan67: plz follow me and make my answer brainalist
Answered by tejasgupta
0
A counter variable refers to a variable that counts the number of times a statement or a set of statements or commands is repeated. It is used in the For.....Next Loop.

For example, In visual Basic,

Dim counter As Integer 'declare the variables
For counter = 1 To 5
'setting the initial and final values for counter
Me.Backcolour = color.green
'any statement(s) here.....
counter = counter + 1
increase the value of counter by 1...
Next

.........hope this helps....pls mark as brainiest.....follow me and comment if you have any doubts.........................
Similar questions