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
258 views
1 answer
    I am working on a function that will essentially see which of two ints is larger. The parameters that are passed ... ifs, whiles, fors etc... See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
284 views
1 answer
    The user thread functions in <ucontext.h> are deprecated because they use a deprecated C feature ( ... at implementing cooperative threading. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
332 views
1 answer
    I am writing a C code in codeblock version 10.05. The program is: int main(int argc , char *argv[]) ... How can i supply command line arguments? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
332 views
1 answer
    I want to define an inline function in a project, compiled with c99. How can I do it? When I declare the ... uses both lib1.o and lib2.o See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
576 views
1 answer
    There are a few options for acquiring an aligned block of memory but they're very similar and the ... advantage? Historical accident? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
500 views
1 answer
    I have a program with a parent and a child process. Before the fork(), the parent process called malloc() ... allocated memory on the heap. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
499 views
1 answer
    I have an int pointer (i.e., int *count) that I want to increment the integer being pointed at by using the ... ++ operator as well. Any ideas? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
491 views
1 answer
    #include<stdio.h> #include<string.h> #include<stdlib.h> int main(){ char *s; printf("enter the string : ") ... related to the input buffer of C? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
349 views
1 answer
    I'm working in C with openMP using gcc on a linux machine. In an openmp parallel for loop, I can ... the dynamically allocated array as private? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
357 views
1 answer
    I was wondering if there was any resources available online that explains what happens with something, like printf ... (BIOS/kernel calls) See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
362 views
1 answer
    In C++ and Java, data structures can have private, public and protected regions. I'd like to port this ... Oriented concepts into C. Thanks. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
341 views
1 answer
    How to get the absolute path for a given relative path programmatically in Linux? Incase of Windows we have ... _fullpath of Windows in Linux? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
595 views
1 answer
    Being new to C, the only practical usage I have gotten out of void pointers is for versatile functions that may ... pointer instead of a void? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
340 views
1 answer
    I was recently building a certain shared library (ELF) targeting x86-64 architecture, like this: g++ -o binary.so ... with -fPIC on the former? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
305 views
1 answer
    I am writing a program which if I compile on a Suse 10 32-bit system without adding the -m32 option ... there any updates or changes required? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
439 views
1 answer
    Is there a (POSIX-)portable way in C for atomic variable operations similar to a portable threading with pthread? ... X in a similar way. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
272 views
1 answer
    Question I am testing a simple code which calculates Mandelbrot fractal. I have been checking its performance depending ... and slower with it. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
296 views
1 answer
    I am finding difficulties in understanding the factors on which the size of pointer variables in C is dependent ... available to the program. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
265 views
1 answer
    I am implementing two processes on a LynxOS SE (POSIX conformant) system that will communicate via shared ... appropriate in this scenario? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
563 views
1 answer
    Suppose I have allocated memory to some pointer in a function foo: void foo() { // ... int *ptr = malloc( ... to the pointer, using GDB? Thanks. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
297 views
1 answer
    I know this question has been asked a lot, but I'm still unclear how to access the structs. I want to make ... type? test_t *_array_ptr[2];? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
497 views
1 answer
    Update: This was fixed in GCC 8.1. I'm working on a function that stores a 64-bit value into memory in ... : I found the corresponding GCC bug. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
689 views
1 answer
    Piece of code : long rangeVar = 0; rangeVar = atol(p_value); if (rangeVar >= -2147483648 && rangeVar <= ... only in ISO C90 Thanks in Advance See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
288 views
1 answer
    I like examples, so I wrote a bit of self-modifying code in c... #include <stdio.h> #include <sys/mman.h> // ... I tend to get lost in it...) See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
335 views
1 answer
    This is very similar to other questions but the ones I've looked at either don't have an answer or don ... doesn't touch the disk unnecessarily. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
410 views
1 answer
    I'm a beginner C programmer, and I assumed that this would be the case, but would like some affirmation if ... just take one argument instead? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
302 views
1 answer
    This question demonstrates a very interesting phenomenon: denormalized floats slow down the code more than an order ... leave them unsigned. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
481 views
1 answer
    I am installing a library, and got this error message: xxxx@ubuntu$ make (cd num; make all) make[1]: ... which package it is exactly about? 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

...