#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
void test1(int arr[]) {
printf("%d\n", sizeof(arr));
}
void test2(char ch[]) {
printf("%d\n", sizeof(ch));
}
int main() {
int arr[10] = { 0 };
char ch[10] = { 0 };
printf("%d\n", sizeof(arr));
printf("%d\n", sizeof(ch));
test1(arr);
test2(ch);
return 0;
}
40
10
4
4
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main() {
int i = 0, a = 0, b = 2, c = 3, d = 4;
i = a++ && ++b && d++;
printf(" a = %d\n b = %d\n c = %d\n d = %d\n i = %d\n", a, b, c, d, i);
int j = 0, a1 = 0, b1 = 2, c1 = 3, d1 = 4;
j = a++ || ++b || d++;
printf(" a1 = %d\n b1 = %d\n c1 = %d\n d1 = %d\n j = %d\n", a1, b1, c1, d1, j);
return 0;
}
a = 1
b = 2
c = 3
d = 4
i = 0
a1 = 0
b1 = 2
c1 = 3
d1 = 4
j = 1