+ 1
Operators
Where can we use prefix and postfix operator in real life entities
3 Answers
0
It Depends some time you want a variable to be incremented in a loop you could use the prefix example
//genrating a new user name
$username= $POST["username"];
for ($i=0;i <$username.length(); $i++){
$username+=$i;
}
0
Tq
- 2
George S Mulbah
Did you check the example code?
Hot today
I have made a calculator in which my % (Percentage) not work correctly for 100%50 or 100%20.
2 Votes
Python palindrome challenge.
1 Votes
Java
0 Votes
Number of Ones ( C++ ) question!
1 Votes