Suppose tuple1=(36,96,88,74)in php,which of the following is incorrect
Answers
Answered by
3
THE 88 IS THE INCORRECT
Answered by
0
Question:
Suppose tuple1=(36,96,88,74)in php, which of the following is incorrect
1] print(tuple1[3])
2] tuple1[3]=45
3] pring(min[tuple1])
4] print(len[tuple1])
Answer:
The incorrect one is 2] tuple1[3]=45
Explanation:
In PHP, we cannot change tuple values. Tuple is unchangeable, once the tuple is created. Tuple is also like a liner data structures like lists, arrays, vector and hash table.
Tuple values are finite values and the values are ordered as a sequence and it supports both pack and unpack values.
Tuple has many use cases, that all arranged as an array structure in PHP and it suites for n-tuple's. Familiar example for this is a record stored in relational database (i.e user_id, name).
Similar questions