Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int n1 = 1, // 0001
- n2 = 4, // 0100
- n;
- int *p = &n;
- int &r = n;
- /*
- #include <stdio.h>
- int n1 = 1, // 0001
- n2 = 4, // 0100
- n;
- /////////////////////////////////////////////////////////
- int main()
- {
- // n1 > 0 && n2 <= 0
- if( n1 > 0 && n2 <= 0) printf("SONY \n");
- else printf("error \n");
- printf("true = %d\n", true);
- printf("false = %d\n", false);
- }
- */
- /*
- #include <stdio.h>
- int n1 = 1, // 0001
- n2 = 4, // 0100
- n;
- /////////////////////////////////////////////////////////
- int main()
- {
- n = n1 & n2;
- printf("n = %d\n", n);
- }
- */
- /*
- #include <stdio.h>
- int n1 = 1, // 0001
- n2 = 4, // 0100
- n;
- /////////////////////////////////////////////////////////
- int main()
- {
- n = n1 | n2;
- printf("n = %d\n", n);
- }
- */
- /*
- #include <stdio.h>
- int n = 1;
- /////////////////////////////////////////////////////////
- int main()
- {
- n = n + 1; // n += 1;
- n = n << 2; // n <<= 2;
- printf("n = %d\n", n);
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement