Why does the compiler give me the warning that the operation on k may be undefined? What can I do to remove this warning?
int main(void){
int k=0;
int a,b;
do{
k = k++;
printf("The value of k is: %d\n",k);
}while(some condition that does not involve k);
return EXIT_SUCCESS
}