-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.c
64 lines (54 loc) · 869 Bytes
/
test.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#include <stdio.h>
int x;
int modifyvalue()
{
return(x+=10);
}
int changevalue(int x)
{
return(x+=1);
}
void fun1(auto int _)
{
printf("%d\n",_);
}
void main()
{
int x=10;
x++;
changevalue(x);
x++;
modifyvalue();
printf("First output:%d\n",x);
x++;
changevalue(x);
printf("Second output:%d\n",x);
modifyvalue();
printf("Third output:%d\n",x);
int i;
i=1;
i=i+2*i++;
printf("%d\n",i);
int a;
a=453<<64;
printf("%d\n",a);
i=10;
printf("%d %d %d\n",++i, i++, ++i);
char arr[11]="The African Queen";
printf("%s\n",arr);
x=10; int y=15;
x = x++;
y = ++y;
printf("%d %d\n",x,y);
float ax;
ax=6.7;
if(ax==6.7)
printf("A\n");
else
printf("B\n");
printf("%d %d ",47%5,47%-5);
printf("%d %d %d\n",-47%5,-47%-5,5%7);
a=3.5;
printf("%d\n",a);
fun1(23);
}