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