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> | |
| #include <math.h> | |
| int num_1( int value, int n_bits); | |
| int main() | |
| { | |
| int a, b, c; | |
| scanf("%o",&a); | |
| scanf("%d",&b); |
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> | |
| #include <math.h> | |
| int factorial( int ); | |
| void coun_0( int ); | |
| int main() | |
| { | |
| int n,m; | |
| scanf("%d", &n); | |
| m = factorial(n); | |
| printf("%d\n",m); |
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> | |
| #include <string.h> | |
| void *memmovea(char *dest, const char *src, size_t n); | |
| int main() | |
| { | |
| char *dest , *res, *src = "abcdefg"; | |
| size_t n = 6; | |
| dest = (char *)malloc(11*sizeof(char)); | |
| res = (char *)memmovea(dest,src,n); |
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() | |
| { | |
| char a=-2; | |
| signed char b=-2; | |
| unsigned char c=-2; | |
| printf("a=%d,b=%d,c=%d\n",a,b,c); | |
| return 0; |
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 isLittleEndian(); | |
| int main() | |
| { | |
| if(isLittleEndian()) | |
| printf(" CPU is LittleEndian"); | |
| printf(" CPU is BigEndian"); |
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> | |
| #include <string.h> | |
| #include <sys/socket.h> | |
| #include <unistd.h> | |
| #include <netinet/in.h> | |
| #include <sys/stat.h> | |
| #include <stdlib.h> | |
| #include <arpa/inet.h> | |
| #define REMOTE_PORT 1234 |
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> | |
| #include <stdlib.h> | |
| #include <errno.h> | |
| #include <string.h> | |
| #include <sys/types.h> | |
| #include <netinet/in.h> | |
| #include <sys/socket.h> | |
| #include <sys/wait.h> | |
| #define MYPORT 5000 |
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> | |
| void foo(void); | |
| int b = 666; | |
| int main() | |
| { | |
| foo(); | |
| foo(); | |
| printf("what!!\n"); | |
| foo(); |
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> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <net/if.h> | |
| #include <arpa/inet.h> | |
| #include <linux/sockios.h> | |
| int main(int argc,char *argv[]) | |
| { |
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> | |
| #define MAXSIZE 100 | |
| typedef char DataType; | |
| typedef struct Node | |
| { | |
| DataType data; | |
| struct Node *left; | |
| struct Node *right; | |
| }BTNode, *PBTNode, *BiTreeLink; |
NewerOlder