What he meant is that char pointer jupms 1 byte and int pointer jumps 4 bytes
Anonymous
Welcome to C/C++!
Anonymous
Hello,
I want to create a small project that will help dad calculate waterbill for his tenants,
An application that will accept and store previous reading, accept current reading then multiply the difference by ksh. 120 then print out a report and send to respective tenant in the apartment, using cpp.
Ideas 💡
hi, guys, I write this code snippet but it doesn't work as I wished. After the qsort expression, the array doesn't get sorted. Can anyone explain to me the reason?
https://groups.google.com/forum/#!msg/comp.std.c/sYYRv5TH_x8/sOByPcNmY6YJ this might help
Anonymous
I want to know if there are some restrictions for the function that passed to qsort. Because when I change the cmp function from the qsort man page by change the cast part from *(char* const*)p1 to (char*)p1, the qsort function won't work anymore