首页 > 代码库 > gcc支持的标签

gcc支持的标签

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <stdio.h>
#include <time.h>
int main(/*int argc, char const *argv[]*/)
{
    void * target;
    time_t now = time(NULL);
    if(now & 1)
        target = &&odd;
    else
        target = &&even;
    goto *target;
 
odd:
    printf("now is odd second: %ld,NULL=%d\n", now,NULL);
    return 0;
even:
    printf("now is even second: %ld,NULL=%d\n", now,NULL);
    return 0;
}