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
602 views
1 answer
    I've been trying to open a file and output text, but I keep getting errors. So I thought I would start at the very ... .exe. How do I fix this? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
684 views
1 answer
    static const int a = 42; static const int b = a; I would expect a compilation error in such code. The ... bug? Is this a compiler extension? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
601 views
1 answer
    I have a popen() function which executes tail -f sometextfile. Aslong as there is data in the filestream obviously I ... for it (see this post). See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
576 views
1 answer
    My software is getting some strings in UTF8 than I need to convert to ISO 8859 1. I know that UTF8 domain is ... from UTF8 to iso-8859-1. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
941 views
1 answer
    I am in the following situation: I am writing code for a kernel that does not allow SSE instructions I need ... do the multiply. Thanks Nathan See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
602 views
1 answer
    I am reading from file of format 1 32 43 23 32 43 123 43 54 243 123 2222 2 Here is my code snippet. ... or so). How to solve this problem? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
642 views
1 answer
    I am learning to program in C. Could you explain why nothing is printed here? #include <stdio.h> int main (void) { ... ; printf ("%s", a); } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
506 views
1 answer
    Today in my interview, the interviewer asked: printf is a function and every function returns something; int, void, ... as it's a function? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
626 views
1 answer
    If I have a union, C standard guarantees that the union itself will be aligned to the size of the largest element. union U ... (&u.s == &u.c[0]) See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
461 views
1 answer
    I would like to know if any code in C or C++ using floating point arithmetic would produce bit exact ... by just configuring the compiler? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
445 views
1 answer
    Though this topic has been discussed many times in this forum and all other forums, still I have doubts. Please ... How does this lock then? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
610 views
1 answer
    First of all, other questions about usage of sscanf do not answer my question because the common answer is to ... must conform to C99 standard. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
711 views
1 answer
    I need the test case for Ethernet in Linux using C code to check eth0. If eth0 is down, we enable the net then ... if up and the test is passed. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
554 views
1 answer
    Following is a program which uses pthreads. #include <pthread.h> // posix threads #include <stdio.h> #include <stdlib. ... 0 and 4 print twice? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
584 views
1 answer
    I am trying to make the fastest possible high quality RNG. Having read http://xorshift.di.unimi.it/ , ... to this speedup in practice? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
539 views
1 answer
    Is this a good style to have the function prototype declared inside of the main function? I was looking at a C ... ,&myage); return (myage); } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
452 views
1 answer
    I'm making a protected-mode OS based on Intel's x86 architecture, and was looking for some information on how ... help me with this problem? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
547 views
1 answer
    Can anyone provide some code examples that act differently when compiled with fwrapv vs without. It says -fwrapv is ... with or without fwrapv. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
983 views
1 answer
    If I have a program which creates and attempts to open a named pipe using mkfifo, how can I open a pipe for ... is running on a linux system) See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
511 views
1 answer
    I am new to programming C.. please tell me what is wrong with this program, and why I am getting this error: error ... number++); } getch(); } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
549 views
1 answer
    Is there a way to create a va_list from scratch? I'm trying to call a function that takes a va_list as a ... I can't change func's signature. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
410 views
1 answer
    I'm going to programme a Game Boy emulator (Z80 is the CPU in case somebody is not familiar with it), ... opcode map or something like that? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
657 views
1 answer
    #include <stdio.h> #include <conio.h> main() { char ch,name[20]; int i=0; clrscr(); printf("Enter a ... instead of . Kindly let me know. Thanks See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
573 views
1 answer
    I want the offsetof() the param line in mystruct1. I've tried offsetof(struct mystruct1, rec.structPtr1.u_line.line) ... } logo; } u_line; }; See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
600 views
1 answer
    I read somewhere that it is disastrous to use free to get rid of an object not created by calling malloc, is this true? why? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
637 views
1 answer
    I want my yylex() to parse a string rather than a file or standard input. How can I do it with the Lex and Yacc provided with Solaris? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
612 views
1 answer
    I am reading this article on PLT (Process Linkage Table) and GOT (Global Offset Table). While the purpose ... I completely missing the point. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
578 views
1 answer
    I want to fulfill the following things in a console application: If user inputs a character, the application will ... it was an obvious mistake. 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

...