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
913 views
1 answer
    /* Write macro for the following : 1. Arithmetic Mean of two no. 2. Absolute value of a no. 3. To convert a ... 6 The bigger of two numbers is 6 See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
762 views
1 answer
    i search about this issue in site and one of them help me a little. i want to make a puzzle with random number ... !! can any one help me ?? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I am writing a basic language in flex + bison for my own personal research / to run simple scripts for fun ... Any advice would be appreciated. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
830 views
1 answer
    #include<stdio.h> int main(){ int ret = 0; ret = func(1.0,2.0); printf(" ret : %d ",ret); ... inside the function gives the correct value 11 ? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
790 views
1 answer
    Let's say we have a program in C that uses the sleep() function The program executes and goes to sleep ... existance of SIGINT(has been cleared) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
925 views
1 answer
    I have following values: client-random bytes server-random bytes pre-master secret I don't want to use features ... in RFCs? Thank You. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
883 views
1 answer
    While using Apple Xcode, the C program I include below will always return a 5 for y but z will return a random ... printf(" "); return 0; } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
982 views
1 answer
    I'm new to C and I'm thinking how to write this function myself. I take a parameter from command line, so ... enought parameters."); return 0; } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
781 views
1 answer
    here is my code in C for problem#3 from project-Euler, where I have to find the largest prime factor of ... anyone help? thanks a lot. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I generated a code for "stm32f103c8t6" with CubeMX for USB VCP, when I add "CDC_Transmit_FS" command to send data, ... */ HAL_Delay(1000); } } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
841 views
1 answer
    The start address 0x4806E000 (UART4 base address) is already present in /proc/iomem with the name omap4-uart. ... "software reset completed "); See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
885 views
1 answer
    I am trying to swap two adjacent nodes in a linked list, and I think I understand the idea of how to do it ... are the first two in the list. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
910 views
1 answer
    If I have a character like the following: wchar_t c = 'x0A' What's an easy way to convert it so that it ... value of c becomes a string value. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
835 views
1 answer
    #include<iostream> #include<stdio.h.> using namespace std; int main() { float f=11.11; printf("%d",f); } ... . What could be the reason behind? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
858 views
1 answer
    How are you supposed to programatically detect when the remote modem on your call hangs up? I am writing a C ... "listen" for remote hang up? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
769 views
1 answer
    Here is the code int main() { int x=15; printf("%d %d %d %d",x=1,x<20,x*1,x>10); ... value inside printf() results in undefined behaviour? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
788 views
1 answer
    I have a specific example below, which works perfectly fine if integers are inputted (see output1), when I try ... background, if any. Thanks See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
842 views
1 answer
    I fork() into process X and Y, afterwards Y forks() again into itself and process Z multiple times. Now process Y ... an idea of how to do this? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
968 views
1 answer
    Lets say I have a function: void split_path_file(char** p, char** f, char *pf) { //malloc and set *p ... Whats the best way to accomplish this? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
836 views
1 answer
    I'd like to allocate 2D array (square matrix) using memalign with 16B instead of using just malloc. I have ... change code above with memalign. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
798 views
1 answer
    Is it Possible to get the name of array the pointer pointing to? example: char name[20]; char *p = name ... there any way to make it possible? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
931 views
1 answer
    how to get the value of an integer x, indicated by x!, it is the product of the numbers 1 to x. Example: 5! ... ; } printf(" = %d", d); See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
776 views
1 answer
    What happens to the data that is present in a memory location that has just been freed by a free() ? Is that ... '1' or some garbage value ? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
742 views
1 answer
    The idea of my simple program that I've been trying to write is to take input from the user to see how large of a ... ty + tx] = Csub; } Thanks See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
759 views
1 answer
    I need to recode the free() func for educational purpose and it must be named free() also. When i ... advance. EDIT : Linux operating system See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
768 views
1 answer
    I would like to model the behavior of caches in Intel architectures (LRU, inclusive, K-Way Associative, etc)., I' ... ? I could not find one. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
753 views
1 answer
    int search(int a[]) { int i,V,index; printf("Enter the element (V),That you want to find:>"); scanf("%d",&V ... is located in a[%d].",V,index ) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
767 views
1 answer
    Today I was coding something and after I was done, I made a check with valgrind and I got a surprise. If I ... printf() helps in this story. See Question&Answers more detail:os...
asked Oct 24, 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

...