int main() { int num = 10,k = 0; struct nodes *head, *p; printf("Enter the value of k \n"); scanf("%d",&k); if(k < 0) { printf("Incorrect Input \n"); return 0; } head = make_linklist(num); p = head; //display_list(p); //printf("Now Reversing\n"); if(k) head = KReverse(head, k); //reverse(head); //sort(head); display_list(head); return 0; }
void EWCharString::Reverse() { ChecEBufferDoRealloc(); KReverse( m_pBuffer->Data() ); }