4381bb2a22
When the execution reaches the end of the main functions, they implicitly return a successful status.
12 lines
310 B
C
12 lines
310 B
C
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
|
|
int main(void) {
|
|
printf("%d\n", atoi(" -42"));
|
|
printf("%d\n", atoi(" +555"));
|
|
printf("%d\n", atoi(" 1234567890 "));
|
|
printf("%ld\n", atol(" -42"));
|
|
printf("%ld\n", atol(" +555"));
|
|
printf("%ld\n", atol(" 1234567890 "));
|
|
}
|