Code:
unsigned int _I = _N; // _N is of type unsigned int
for (_Grp = false; *_Pg != CHAR_MAX && '\0' < *_Pg
&& *_Pg < _I - _Np; _Grp = true)
//*_Pg is constant char
In the above code we are comparing constant char with unsigned int(*_Pg < _I - _Np). We are getting a warning of 'warning C4018: '<' : signed/unsigned mismatch' when compiled with highest warning level in VC++. Can anyone help us to get rid of this warning with necessary explaination (Without using #pragma directives) ???
Comment