This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysqldump -u root -p linuxcast > linuxcast_backup.sql | |
mysql -u root -p linuxcast < linuxcast_backup.sql |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(void) | |
{ | |
int a = 0x80000000; | |
printf("os is %d\t%d\n", a, sizeof(int)); | |
union ut { | |
short s; | |
char c[2]; | |
} u; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void inplace_swap(int *x, int *y) | |
{ | |
*y = *x ^ *y; | |
*x = *x ^ *y; | |
*y = *x ^ *y; | |
} |
NewerOlder