在C中,使用++i和之间有什么区别i++,哪些应该在for循环的增量块中使用?
什么时候应该使用前减量,什么时候使用后减量?
对于以下代码片段,我应该使用 pre 还是 post 递减。
static private void function(int number)
{
charArr = new char[number];
int i = 0;
int tempCounter;
int j = 0;
while(charrArr!=someCharArr)
{
tempCounter = number - 1;
password[tempCounter] = element[i%element.Length];
i++;
//This is the loop the I want to use the decrementing in.
//Suppose I have a char array of size 5, the last element of index 5 is updated
//in the previous statement.
//About the upcoming indexes 4, 3, 2, 1 and ZERO. …Run Code Online (Sandbox Code Playgroud) 在 Java 中,什么是++int?它有什么作用?这是什么意思?
(抱歉,上次我没有正确提问。)