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.0k views
1 answer
    While running this code, I encounter Segmentation fault at scanf(). This is possibly due to the declaration of ... me how correctify this code. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
860 views
1 answer
    i wrote the following program #include <stdio.h> main() { int i = 2; float c = 4.5; printf("%d ",c ... whats happening ,any one pls explain me. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
807 views
1 answer
    I know that the use of include guards in header files is to prevent something from being defined twice. Using this ... . Why is there no error? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
752 views
1 answer
    I want to dynamically allocate a 2d array to store strings. I originally declared the array like this: char ... it to prevent stack overflow? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
833 views
1 answer
    Since float precision reduces for larger values, in some cases it may be useful to quantize the value based ... their magnitude into account? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
736 views
1 answer
    According to GCC's Extended ASM and Assembler Template, to keep instructions consecutive, they must be in the same ... ) before the POP %EBX? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
853 views
1 answer
    I'm trying to understand how stack works in Linux. I read AMD64 ABI sections about stack and process initialization and it ... 0 rw--- [ anon ] See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
816 views
1 answer
    How can you wait until all children and grand-children have exited, without blocking in a signal handler? This is my ... ; printf("ciao "); } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I was wondering if there is a way to know when a webkitdownload has finished without error. I am using the ... until it has finished? Cheers See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
799 views
1 answer
    I'm working with a binary search tree data structure to sort a series of structs with the type definitions: ... seem to pass the compiler. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
698 views
1 answer
    Recently, I got a job(C/C++) to use message communication between different threads in Windows. I Googled and ... ) in Windows works like that? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    I would like to know how to get the x and y coordinates of a mouseclick with Xlib anywhere on the screen. I've ... C, I am happy to hear it. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
697 views
1 answer
    Remembering the names of system header files is a pain... Is there a way to include all existing header files at ... Why doesn't anyone do that? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
992 views
1 answer
    /* test.c */ void func1() { } int main() { func1(); } Hello, I am making kernel code using C. But I ... should I do to solve this problem.. ? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
635 views
1 answer
    Question For a C99 compiler implementing exact IEEE 754 arithmetic, do values of f, divisor of type float exist ... , before it has finished? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
793 views
1 answer
    I have a question which deals with the difference in representation between a float and a byte in a computer ... would be very helpful! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
607 views
1 answer
    For entertainment, I am learning gnu extended assembly using AT&T syntax for x86 with a 32bit Linux target. I have just spent ... a is 1, b is 1 See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
834 views
1 answer
    the program for strtok given on http://www.opengroup.org/onlinepubs/000095399/functions/strtok.html crashes everytime ... works. Kindly explain. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
880 views
1 answer
    I have two dynamically loadable libraries lib_smtp.so and and libpop.so etc. Both have a global variable ... for statically linked libraries. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
895 views
1 answer
    Can I set LD_LIBRARY_PATH for an individual application? I am looking into system call failure, so is ... using the LD_LIBRARY_PATH setting? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
626 views
1 answer
    Say I declare a header file with a variable: int count; Then in the source file, I want to use count. Do I ... file? Or does it not matter? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
930 views
1 answer
    Just starting in C, and learning the basics. I have created a simple program that when compiled, would expected to ... is compiling as a.exe. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
798 views
1 answer
    I need to find the architecture type of a CPU. I do not have access to /proc/cpuinfo, as the machine is running ... { return 1; } return 0; } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
786 views
1 answer
    I have a problem compiling the following code: #include <stdio.h> #include <limits.h> int main () { printf(" ... Any idea what the issue is? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
921 views
1 answer
    I have this requirement wherein I have to increment the value of a POSIX semaphore by more than 1. Apparently, ... . Great thanks in advance. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
746 views
1 answer
    Somewhere I've read that integer constant expressions consists integer constants such as: (5 + 5) //integer constant ... (int)(5/3.14f); See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
797 views
1 answer
    The C standard states that a long int is at least 4 bytes - on my system it is 8 bytes. This means ... - when I declared it explicitly? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
826 views
1 answer
    I have two Slackware Linux systems on which the POSIX semaphore sem_open() call fails with errno set to 38. ... ; sem_unlink(SEM_NAME); } } 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

...