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
280 views
1 answer
    (Related: How to quickly count bits into separate bins in a series of ints on Sandy Bridge? is an earlier duplicate ... 0; } Thanks in advance! See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
410 views
1 answer
    Okay, I've run into a strange issue compiling a C file with MinGW (GCC 4.6.2) on Windows 7. The ... print char variables as hexadecimal values.) See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
308 views
1 answer
    Any C programmer who's been working for more than a week has encountered crashes that result from calling printf ... inducing pitfall here, too? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
373 views
1 answer
    I'm doing a program that aproximate PI and i'm trying to use long long, but it isn't working. Here is the code ... printf("%lld ",4*pi); } } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
304 views
1 answer
    I want to use a mutex which will be used to synchronize access to some variables residing in the memory ... that will be very appreciated. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
452 views
1 answer
    I was wondering if there was any way to pass parameters dynamically to variadic functions. i.e. If I have a ... there is no other option? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
371 views
1 answer
    I'm trying to program a very simple kernel for learning purposes. After reading a bunch of articles about ... this problem? Any suggestions? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
262 views
1 answer
    int main(int argc, char *argv[], char *env[]) { printf("Press any key to exit. "); getch(); return 0; } ... press Enter, it's not what I want. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
444 views
1 answer
    I am trying to implement a rotate left function that rotates an integer x left by n bits Ex: rotateLeft(0x87654321,4) ... 0xf]. Should be 1[0x1] See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
237 views
1 answer
    I've seen for(;;) and for ( ; *s != ''; s++) Why is it blank like that. Thanks. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
248 views
1 answer
    How am I supposed to use dynamic memory allocations for arrays? For example here is the following array in which i ... help me in this regard. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
373 views
1 answer
    I want to print all permutation of string in lexicographic order. I wrote this code: void permute(char *a, int i, int ... (I'm a beginner in C). See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
251 views
1 answer
    Which is the fastest way to get the lines of an ASCII file? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
436 views
1 answer
    I need to get the name of a file from a given file descriptor, inside a small linux kernel module that I wrote. ... solution). How can I do it? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
286 views
1 answer
    What is the meaning of following Code? Code is from the regression test suite of GCC. static char * name[] = { [0x80000000] = "bar" }; See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
383 views
1 answer
    From my book: .bss: Uninitialized global C variables COMMON: Uninitalized data objects that are not yet allocated I ... in .bss... confused See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
334 views
1 answer
    I've seen some posters stating that strdup is evil. Is there a consensus on this? I've used it without any guilty ... have been @R..'s answer. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
435 views
1 answer
    This is one interview question. How do you compute the number of digit after . in floating point number. e.g ... 7 bits indicate the mantissa. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
241 views
1 answer
    I am going through "C PRIMER PLUS" and there is this topic about "OUTPUT FLUSHING". Now it says: printf() ... It still outputs on the console. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
406 views
1 answer
    I am trying to swap two nodes. For example if the nodes are a and b I am passing the pointers (a-1)-> ... it's an infinite loop. Please help. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
355 views
1 answer
    If I input 5 5 at the terminal, press enter, and press enter again, I want to exit out of the loop. int ... to quit after reading an empty line? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
344 views
1 answer
    I was wondering if my implementation of an "itoa" function is correct. Maybe you can help me getting it a bit more " ... char *argv[]) { ... See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
239 views
1 answer
    I have a simple program which initializes an array as: int a[]={10,20,30,40,50}; char *p; p=(char*)a; ... it stored on the stack or the heap? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
297 views
1 answer
    I am using unsigned long long integer format in order to calculate big factorials. However my code fails at some point can you ... < p; k++); } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
426 views
1 answer
    what was the syntax to input strings with more than one word i.e with space in between through scanf() not gets() See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
323 views
1 answer
    GCC has 128-bit integers. Using these I can get the compiler to use the mul (or imul with only one operand ... s more complicated than I expect. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
459 views
1 answer
    I've used x86 SIMD instructions (SSE1234) in the form of intrinsics quite a lot lately. What I found ... algorithms applied to each instruction. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
416 views
1 answer
    I am working on a pet open-source project that implements some stream cipher algorithms and I am having trouble with ... running Linux 2.6.32. See Question&Answers more detail:os...
asked Oct 17, 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

...