Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - C language array problem
C language array problem
A++ doesn't look like it, but it is, absolutely, absolutely illegal! The operation object of self-increasing and self-decreasing operation must be an integer variable, variable! 2++ or (A+3)- Both are illegal!

A is an array name and address constant, so it won't work.

But pointers are ok, such as int * p = a;; p++; At this point, p points to a [1];

A[i]++ is the value of a [I] plus1; For example, a [1] = 0; a[ 1]++; At this time, a[ 1] is equal to 1. Ha ha! I hope it works for you!