Rev 9262 |
Go to most recent revision |
Blame |
Compare with Previous |
Last modification |
View Log
| Download
| RSS feed
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int comp(void *a, void *b) {
return *(int*)a - *(int*)b;
}
int main(){
assert(atoll
("-9223372036854775806") == -9223372036854775806LL
);
char st1[32];
assert(llabs
(100000000000) == 100000000000);
assert(llabs
(-100000000000) == 100000000000);
div_t output1
= div(27, 4);
ldiv_t output2
= ldiv(27, 4);
lldiv_t output3 = lldiv(27, 4);
char *st2
= malloc(sizeof(char)*2);
st2[0] = 'H';
st2[1] = 'i';
st2
= realloc(st2
, sizeof(char)*3);
st2[2] = '!';
st2
= calloc(2, sizeof(char));
st2[0] = 'H';
st2[1] = 'i';
char *start = "100.00 Rub";
char *end;
end = NULL;
// rand ¨ srand ¯à®¢¥à¥ë ¢àãçãî :3
char *st3 = "21.3e3Hello World!";
int nums[10] = {5, 3, 9, 1, 8, 4, 2, 0, 7, 6};
qsort(nums
, 10, sizeof(int), (int(*) (const void *, const void *))comp
);
for (int i = 0; i < 10; i++) {
}
}