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'm confused with the usage of 128-bit integer. Please look at the test code: uint128_t test_data = ... 0101010101010101 Why is this? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
774 views
1 answer
    Given that _mm256_sqrt_ps() is relatively slow, and that the values I am generating are immediately truncated with ... a different question...) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
877 views
1 answer
    Running an ncurses program in urxvt squeezes repeating characters in strings. For example I expect "--------" ... v9.22 $TERM is xterm-256color See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
799 views
1 answer
    After I formatted the "direccion"'s scanf in function "leerdatos", it skip the "nro_corredor" in the second ... ); return(participante); } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
837 views
1 answer
    I am trying to solve the numerical equation: sin^2(x)tan(x) = 0.499999 Using a while loop in C. However ... as in this if statement? Thank you. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    Is there a function analogous to IsBadReadPtr in Unix? At least some functionalities of IsBadReadPtr? I want to ... useless. Any suggestions? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
809 views
1 answer
    Interesting little bug here: if (host != NULL) { printf("hi"); } else { printf("FAIL"); } return 0; ... hi abc Does anyone know why this is? 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 making a program that creates a bitmap file in C. it's using 24-bit colour. I'm writing the file in 3 ... fwrite(&pad, 1, 1, n_img); } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
950 views
1 answer
    scanf("%f", &num); I have to check if thats a valid float variable and stop executing if it has symbols like @ or ! or % etc.. Suggestions? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    As far as I know, the ISO C standard is strict about initializers for object with static storage duration in ... I getting anything wrong here? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
960 views
1 answer
    This is what I have now. void insert(char Table[][81], char Key[81]){ int index; index = search(Table, ... draw a conclusion please let me know. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    (This question might be somewhat related to pthread_exit in signal handler causes segmentation fault) I'm writing ... insight is appreciated! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
944 views
1 answer
    Here is an example piece of my code signal(SIGCHLD, SIG_IGN); ret = system("ls -al"); if(ret < ... the POSIX specification and OS realizaiton? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
912 views
1 answer
    I do not understand why the second printf loop outputs different data than the first printf loop that was done inside ... I'm doing wrong ?? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
986 views
1 answer
    As I am just a learner, I am confused about the above question. How is a pointer to an array different from ... it to my teacher. Thank you. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
774 views
1 answer
    So when printing from a DLL I get for all my records the same string values for the following fields: Last ... 14361 | Expenditure: 449.00 | See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
852 views
1 answer
    In: struct foo { unsigned bar : 2; }; What does the ': 2' do? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    Possible Duplicates: Modulus operation with negatives values - weird thing ?? Mod of negative number is melting ... why two different answers? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
802 views
1 answer
    Please explain why the following pieces of code behave differently. #include<stdio.h> int main(){ float a=0.1; if ... PS: This is NOT homework. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
973 views
1 answer
    How can I allocate memory for a struct pointer and assign value to it's member in a subfunction? The following code ... s->str); return 0; } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
872 views
1 answer
    I am trying to implement a function to change state of the menu, but my reference is lost when it leaves the ... this isn't working. Any ideas? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
845 views
1 answer
    I wrote a program to list all the system calls executed by a command (say /bin/ls). Now what I am trying ... for this would be much helpful. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
822 views
1 answer
    I need somebody to edit the title, I can't find better title. Assume a have this simple program called source.exe ... I've tried above? thanks. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
772 views
1 answer
    I have an array like the following int arr[32]; This array can contain 32 element. If I added into that ... current example will get 4 elements. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
720 views
1 answer
    This might be very basic but I got very curious what the reason is. When dealing with different types of operations ... int in this case in C? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
912 views
1 answer
    I wrote my own malloc and free and compiled them in a shared library. I LD_PRELOAD that library with my program. In ... getpid() ); return 0; } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
766 views
1 answer
    I want to represent a 32-bit number using RGBA values, is it portable to generate the values for said number ... functions. But is it safe? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I have a comparison result of comparison of two floating point operands as follows; What I need to do is ... 0] |= _mm_movemask_ps(cmp_gt_res); 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

...