Computer Science, asked by TbiaSamishta, 11 months ago

suppose tuple1=(36,96,88,74) ,in PHP which of the follwing is incorrect 1]print(tuple1[3]) 2]tuple1[3]=45 3]pring(min[tuple1]) 4]print(len[tuple1])

Answers

Answered by Secondman
0

2] tuple1[3]=45  is incorrect.

A Tuple is a linear data structure like arrays,lists or vectors and is immutable (unchangable).  

So, once a tuple is defined, no change can be made to it.

In the above code, the tuple was defined as :

tuple1=(36,96,88,74) and now, if we try to replace tuple[3] which is 74, with any other value, it will cause an error. The

Similar questions