c
C - Summation with Double - Precision
I have problem with precision of double format. Sample example: 开发者_StackOverflow中文版 double K=0, L=0, M=0;[详细]
2023-04-13 06:27 分类:问答valgrind Error: Conditional jump or move depends on uninitialised value(s)
I have one program: #include <stdio.h> intcall(){ int x=25; ++x; return x; } int main(){ int p; p=call();[详细]
2023-04-13 06:19 分类:问答Referencing a pointer to a struct that contains a pointer to a pointer to a struct
I\'m having a hard time referencing the memory inside the struct, I\'m not sure that my syntax is correct (although considering other posts I think I\'m fine).[详细]
2023-04-13 06:05 分类:问答local pointer variables
What will be the output of the following program? int *call(); void main() { int *ptr = call(); printf(\"%d : %u\",*ptr,ptr);[详细]
2023-04-13 06:05 分类:问答Imitating ls in ansi C
I have a code to mimic ls -la in ansi C, but when I change the directory from . (current directory) to any other it keep saying No such file or directory, any ideas why?[详细]
2023-04-13 05:42 分类:问答macro definition
I tried to define a macro functioned as below. Call 1 has no problem, but Call 2 prompted compiler error because 3rd argument is not available. How to define a macro which support both call 1 and call[详细]
2023-04-13 05:28 分类:问答How to convert char pointer into char in C Open VMS
This is to convert from char pointer into char. I followed the codes from another topi开发者_Python百科c but it seems like it\'s not working to me.[详细]
2023-04-13 05:24 分类:问答C use select and read from pipe
I\'ve got a program that I\'m working on and I use select to choose from the pipes to read. The problem is that I\'m using if(FD_ISSET(pfd[i][0], &read_set)) and it fails the verification because[详细]
2023-04-13 04:42 分类:问答c get nth byte of integer
I know you can get the first byte by using int x = number & ((1<<8)-1); or int x = number & 0xFF;[详细]
2023-04-13 04:35 分类:问答fread Function in C Programming
I have two questions about C\'s fread function: I have read that fread is used to read a binary file.However, when I read a binary file with fgets using read mode \"r\" and a text file with fread us[详细]
2023-04-13 04:30 分类:问答