2021-04-27 18:33:31 +02:00
|
|
|
#include <limits.h>
|
2022-04-15 11:11:49 +02:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <sys/ksys.h>
|
2021-04-27 18:33:31 +02:00
|
|
|
|
|
|
|
char* test_string1 = "Hello world!";
|
2021-05-10 00:12:43 +02:00
|
|
|
int a, b;
|
2021-04-27 18:33:31 +02:00
|
|
|
|
2022-04-15 11:11:49 +02:00
|
|
|
int main(int argc, char** argv)
|
|
|
|
{
|
|
|
|
sscanf("43 53", "%d %d", &a, &b);
|
2021-05-10 00:12:43 +02:00
|
|
|
printf("(43 53) = (%d %d)\n", a, b);
|
2021-04-27 18:33:31 +02:00
|
|
|
printf("Hello world! = %s\n", test_string1);
|
|
|
|
printf("345.358980 = %f\n", 345.35898);
|
|
|
|
printf("345 = %d\n", (int)345.35898);
|
|
|
|
printf("ff = %x\n", 255);
|
|
|
|
printf("-1 = %d\n", UINT_MAX);
|
|
|
|
printf("5A-4B-N$ = %s%c-%u%c-N%c\n", "5", 'A', 4, 'B', '$');
|
|
|
|
puts("Done!");
|
|
|
|
return 0;
|
|
|
|
}
|