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
375 views
1 answer
    Sorry for asking very basic question. I would like to set OR condition in #ifdef directive.? How to do that ? ... work? What is the proper way? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
507 views
1 answer
    I'm trying to understand what functions memalign() and posix_memalign() do. Reading the available documentation ... (low-fragmentation heap). See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
718 views
1 answer
    In this thread the OP is suggested to use mmap() instead of shmget() to get shared memory in Linux. I visited ... method or mmap()? And why? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
293 views
1 answer
    I am trying to understand how can I make my program a daemon.So some things which I came across are In ... this process in more depth. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
295 views
1 answer
    What are the pros / cons of using pthread_cond_wait or using a semaphore ? I am waiting for a state change like ... and cons of each method ? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
422 views
1 answer
    Windows 10 Anniversary Update includes the Linux Subsystem for Ubuntu. I installed gcc with sudo apt-get install ... GCC in Linux Subsystem ? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
300 views
1 answer
    I keep seeing this constant pop up in various graphics header files 0.0039215689 It seems to have something to ... on Google that explained it. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
432 views
1 answer
    In every example and discussion I run across in the context of BSD socket programming, it seems that the ... of individual ioctl methods. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
386 views
1 answer
    Can I specify that I want gdb to break at line x when char* x points to a string whose value equals "hello"? If yes, how? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
681 views
1 answer
    I don't understand the difference between a dangling pointer and a memory leak. How are these two terms related? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
290 views
1 answer
    I am trying to make software install to a specific directory. I found several ways, but not sure what are the ... Do they achieve the same goal? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
260 views
1 answer
    I just got a core-dump file in linux with ulimit -c unlimited how can I attach gdb with it I need to give ... Help me to get into gdb Cheers!! See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
294 views
1 answer
    I am working on a project where I am creating structures inside of a separate function than main(). After being ... ; } } return carptr; } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
488 views
1 answer
    printf function int to %f , float to %d trying to experiment #include<stdio.h> int main(){ int i=10 ... why these variables are interchanging ? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
265 views
1 answer
    I hope I haven't missed a similar question. I'm trying to code a mini-shell of my own, using primitive C ... What should I do to avoid this? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
485 views
1 answer
    for the below shown code #include<stdio.h> #include<math.h> int main() { int a,i,n=0; int temp=0; scanf(" ... 23. Only the output by gcc has 24 See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
474 views
1 answer
    Here's ny stack malloc() at 0xb7dfd333 strdup() at 0xb7e01866 tzset_internal() at 0xb7e2ef68 __tz_convert() at ... shown above. Any ideas? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
531 views
1 answer
    I want to read a string from keyboard and store in buf . I set a char buf[6] array , this array at most can ... buf)); printf("%s ",buf); } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
453 views
1 answer
    Here is my code : char *name, name_log="log-"; ------getting 'name' from user----- strcat(name_log, name); ... wrong and how can I fix it ? Thx See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
243 views
1 answer
    I don't really understand how the pointer to pointer works. Any way to do the same work without using pointer to pointer ... &(*tmp)->money); } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
457 views
1 answer
    I'm trying to set up a "gcc99" alias in Windows PowerShell which is equal to "gcc -std=C99 -pedantic -Wall". The ... 1: link" on the next line.) See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
397 views
1 answer
    I have a char array as below: char buffer[100] And another char pointer as below: char *buffer buffer = ... they are actually different. Why? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
422 views
1 answer
    #include<stdio.h> #include<conio.h> #define CUBE(y)y*(y*y) main() { int j; j = CUBE(-2+4); printf(" ... this step by step, means in easy way. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
552 views
1 answer
    In the following program, I thought that extern int i; will change the following i to refer to the i ... that? Thank you for explanations! See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
226 views
1 answer
    I don't have experience in assembly, but this is what I've been working on. I would like input if I'm missing any ... (d), "a"(foo) ); } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
392 views
1 answer
    I made a program to find if a entered string is palindrome or not palindrome but it always says that its not a ... Palindrome."); getch(); } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
306 views
1 answer
    Like the Title says I need to make code::blocks to work with C11 and I can't figure out how to do it. I ... make code::blocks to work with c11 ? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
373 views
1 answer
    [Question inspired by a comment thread at this answer.] As everyone knows, since C99 it's an error to call ... again, would defeat the purpose.) 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

...