Rev 8793 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
9766 | turbocat | 1 | #include |
2 | #include |
||
8687 | turbocat | 3 | #include |
4 | |||
5 | char* test_string1 = "Hello world!"; |
||
8718 | turbocat | 6 | int a, b; |
8687 | turbocat | 7 | |
9766 | turbocat | 8 | int main(int argc, char** argv) |
9 | { |
||
10 | sscanf("43 53", "%d %d", &a, &b); |
||
8718 | turbocat | 11 | printf("(43 53) = (%d %d)\n", a, b); |
8687 | turbocat | 12 | printf("Hello world! = %s\n", test_string1); |
13 | printf("345.358980 = %f\n", 345.35898); |
||
14 | printf("345 = %d\n", (int)345.35898); |
||
15 | printf("ff = %x\n", 255); |
||
16 | printf("-1 = %d\n", UINT_MAX); |
||
17 | printf("5A-4B-N$ = %s%c-%u%c-N%c\n", "5", 'A', 4, 'B', '$'); |
||
18 | puts("Done!"); |
||
19 | return 0; |
||
20 | } |