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
405 views
1 answer
    How do I check if an integer is even or odd using bitwise operators See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
587 views
1 answer
    When we debug a program using gdb, we usually see functions with strange names defined in libc(glibc?). ... difference between libc and glibc? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
732 views
1 answer
    After looking at a unix named socket and i thought they were named pipes. I looked at name pipes and didnt see ... else if i have needs)? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
653 views
1 answer
    I have a library I created, File mylib.c: #include <mylib.h> int testlib() { printf("Hello, World! ") ... way to declare a function prototype? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
593 views
1 answer
    A Zombie is created when a parent process does not use the wait system call after a child dies to read ... the greater application or system? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
556 views
1 answer
    Reading the man pages and some code did not really help me in understanding the difference between - or better, when ... (stderr, "..."). See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
586 views
1 answer
    What is the difference between memcpy() and strcpy()? I tried to find it with the help of a program but both are giving ... is [sa], t is [sa] See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
535 views
1 answer
    One way to get cmake to build x86 on Windows with Visual Studio is like so: Start Visual Studio Command prompt for ... does it from in the IDE) See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
545 views
1 answer
    I came across the data type int32_t in a C program recently. I know that it stores 32 bits, but don't int ... int32_t, int8 and int8_t in C? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
355 views
1 answer
    Can someone explain why this works with the pointer: char * str1; str1 = "Hello1"; str1 = "new string"; // but ... = "hello"; str3 = "hello"; See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
346 views
1 answer
    I almost understand how tail recursion works and the difference between it and a normal recursion. I only don't ... 't make sense for me. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I have the following stack trace. Is it possible to make out anything useful from this for debugging? Program ... the code here. Apologies. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
331 views
1 answer
    #include <stdio.h> int main(void) { int i=10; if(i==(20||10)) printf("True"); else printf("False") ... explain to me how does this program work? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
378 views
1 answer
    I'm working on Recover and am wondering if there's something fundamentally flawed with my approach. The walkthrough ... it did the same thing. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
441 views
1 answer
    The program I am supposed to write is supposed to print the triangle in the following manner: If the number of rows is 2 ... } printf(" "); } } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
339 views
1 answer
    I've got an array of characters which contains a string: char buf[MAXBUFLEN]; buf[0] = 'f'; buf[1] = ... argument. Can anybody help me out? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
328 views
1 answer
    Our professor made available object files of a previous assignment that I wasn't able to complete. This previous ... with those object files? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
352 views
1 answer
    I have a simple program to calculate the volume of a cube. It runs fine, but the result I get is wrong. It comes out ... ("Y is %d ", y); } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
453 views
1 answer
    I need to build a function that returns the bit-level equivalent of (float)x without using any floating data ... code? Thank you all again! See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
418 views
1 answer
    I want to define a 2D array of very big size. But it is giving me segmentation fault? #include < ... memory initialization? Thanks in advance See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
452 views
1 answer
    I'm writing a C program using the Windows API. Each major function has its own file, and there is one ... there any solution to this problem? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
257 views
1 answer
    #include<stdio.h> #include<stdlib.h> #include<conio.h> struct student{ char firstname[20]; char lastname[20]; double ... all my code is wrong? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
344 views
1 answer
    I'm trying to call menu function in the main function and let it prompt until the user decides to quit, ... Incorrect Part Thanks in advance!!! See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
414 views
1 answer
    I've developed a C program that can calculate the value of a sin function using Taylor series expansion. ... knowledge in drawing flowcharts. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
432 views
1 answer
    Consider the following short program. int main(){ asm("movq 0x5F5E100, %rcx;" "startofloop: ; " "sub 0x1, %rcx ... startofloop; # 0 "" 2 #NO_APP See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
351 views
1 answer
    wchar_t is defined in wchar.h Currently, if the developers want to use only wchar_t, they can not do ... namespace. */ __USING_NAMESPACE_STD(tm) See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
453 views
1 answer
    Often in embedded programming (but not limited to) there is a need to serialize some arbitrary struct in order ... be some other approaches? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
505 views
1 answer
    gcc Version: 4:4.4.4-1ubuntu2 GNU Make 3.81 I have the following library called net_api.a and some header ... ' What is going wrong here? 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

...