Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged c

0 votes
1.1k views
1 answer
    I have a format string like this: buf[] = "A%d,B%d,C%d,D%d,F%d,G%d,H%d,I%d,J%d"; and I want to insert ... and sprintf will use it for each %d? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    While reading through the GNU documentation on string streams I found two similar functions that do very similar ... an input/output stream? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    Ηow to EXIT_SUCCESS after strict mode seccomp is set. Is it the correct practice, to call syscall(SYS_exit, EXIT_SUCCESS); ... {?}" # I want 0 See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I am developing backend project using node.js and going to implement sorting products functionality. I researched ... be much appreciated. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
999 views
1 answer
    I am trying to create a shared library in Linux. How can I pass an argument to function my_load() when library is ... printf("test_func() "); } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I've this problem with my server/client on C. If I close the server socket after a SIGINT, and then I try to ... "Error:"); prints "success"... See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    When I write int main() { int j; } The memory for j is allocated at the time of compilation, but when ... variable? What if j were global? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    Whenever I input a number in this program the program return a value which is 1 less than the actual result ... What is ... ); printf("%d",c); } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    total newbie here. i was trying to replace a character in char * but my program gives error #include <stdio.h> int ... ",mystring); return 0; } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I was tring to use "reverse-step" and "reverse-next" command inside gdb. Stack overflow tells me that I should run ... n Well, it doesn't work See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    What is the difference between int *a[3] and int (*a)[3]? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    I have this basic Hello World code : #include <stdio.h> int main() {printf("Hello World !"); return 0;} ... ll edit this again when it's done See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    For example int (*pt)[4]; int target[3][4] = {{1,3,4,6},{2,4,5,8},{3,4,6,7}}; pt = target ... [0]; why it is "[Error] invalid array assignment" See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    This program compiles without errors, for example with clang -Wall -std=c11 a.c and gcc -Wall -std=c11 ... be produced in other circumstances. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    For some homework I have, I need to implement the multiplication of a matrix by a vector, parallelizing it by rows and by ... sLocal = 0; } } } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    I have a C function that is called thousands of times and I have noticed that it is the only possible place ... for the help, much appreciated See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    I have read the code like the one down below in an obfuscated program. I wonder why the compiler gave me an warning instead ... "+!f); ^ & [ ] See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    Do you know why certain files are not listed by this program, even if they are "regular"?: #include <stdio.h> ... be the reason of the problem. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    What's the difference between this function parameter stringLength(char string[]) to stringLength(char *string), shouldn ... stringLength(s)); } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I'm sorry for this silly question. I have C program to prompt user to enter age and name and then print the ... if working with I/O stream. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    I was initializing array (unsigned short int) of size 100000000 in C 4.3.2 , and other two int array of ... dynamically with a default value ? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.6k views
1 answer
    I'm a complete beginner in C programming and I have a question. I'll bring a simple code as an example: ... Does anyone know why this happens? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    On linux, I am opening a pseudo tty on the master side. While there is no client on the slave side, the pseudo ... the right way to do it ? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I want to take a piece of code, copy it into a global array and execute it from there. In other words, ... and an x64-based processor. Thanks See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    This code fails when I try to debug it using VC2010: char frd[32]="word-list.txt"; FILE *rd=fopen(frd,"r" ... Retry Ignore The errno I get is 2; See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    #include <stdio.h> void swap1(int a, int b) { int temp = a; a = b; b = temp; } void swap2(int *a, int *b) { ... ); printf("%d , %d ", a, b); } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    Let's say I have a variadic function foo(int tmp, ...), when calling foo function I need to know how ... variadic functions in C89. Any ideas? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I'm trying to port an old C .dll library originally done with MSVC that uses BEA Tuxedo library to use MinGW. I have ... ) (char *, long, long); See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...