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
414 views
1 answer
    The variable a is assigned by value 10 and the variable b is assigned by 20 with the union variable v. Then it ... and I got 20 as output. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
660 views
1 answer
    Supposing I have a code like this: #include <stdio.h> #include <stdint.h> int main(int argc, char *argv[]) ... 8 of uint8_t. Could you advise? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
354 views
1 answer
    I'm trying to make a substring function on c. It must be return "cdef", but it returns nothing. How can i fix ... nText, tmp); } return nText; } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    I'm trying to compare two character and see which one is lexicographic longer and sorting by it problem is ... way to compare single characters? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
327 views
1 answer
    Here I want to create a header which contains other file details like metadata of other files. This code is works ... me to solve this issue? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
519 views
1 answer
    I read into C11 standard this: Input white-space characters (as speci?ed by the isspace function) are skipped, unless ... 't discard a new line? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
428 views
1 answer
    I am having trouble finding a way to get the array size from within a function. Here is my code: #include ... apparently that is not possible. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
513 views
1 answer
    Why when i try to show 2 dates with different arguments, that i put into localtime() function, console show 2 equal ... ; getch(); return 0; } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
392 views
1 answer
    The output of the following program is 50 on gcc. How is it possible as x is constant variable and *p is x itself as ... ("%d", x); return 0; } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
482 views
1 answer
    Given the following code: #include <stdio.h> #ifndef STR #define STR "HELLO" #endif int main() { printf(STR ... 't produce the expected output. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
368 views
1 answer
    I am not trying to handle a segmentation fault. I understand how exception handling works, more or less. I would ... Linux and/or Mac OS X? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
356 views
1 answer
    I'm testing Intel ADX add with carry and add with overflow to pipeline adds on large integers. I'd like to ... rtm rdseed adx smap xsaveopt ... See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
446 views
1 answer
    I know this is a simple questions, but it came up when I was coding and I am wondering how it works now. ... curiosity so I thought I would ask. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
583 views
1 answer
    I have a function that will parse some data coming in. My problem is that after using strncpy I get some ... is 1319639501097446 F End of Parser See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
574 views
1 answer
    I wrote a shared object, say libsd.so, and I put libsd.so and its header file sd.h in ~/lib. Here ... LD_LIBRARY_PATH=~/lib in ~/.bashrc? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
424 views
1 answer
    I have to write a program in C (on a Unix-like system) and this is my problem: I have a file (FILE1) and ... of FILE1. Can you please help me? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
531 views
1 answer
    Here's the code: #include <stdio.h> #include <stdio.h> #define VAL1(a,b) a*b #define VAL2(a,b) a/b ... the results of two statements the same? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
614 views
1 answer
    I've got to read a date format (dd-mm-yyyy;) from a char* string using sscanf with this line of code: sscanf ... book, I didn't find a solution. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
474 views
1 answer
    So the question is to develop a [5][5] table, each containing unique numbers from 1-100 (no duplicates) so here's ... it up :/ Any idea guys? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
503 views
1 answer
    I'm trying to setup half duplex communication in my program. I have my RS485 transceiver using the RTS flag ( ... sent before calling setRTS(0)? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
365 views
1 answer
    I am currently working on loading a bitmap file in C. I am kind of new to C, and I ran into a problem: ... { return BLUE; } return NOT_BLUE; } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
504 views
1 answer
    After seeing this answer I have this doubt. In my project, I have seen some extern variables declared and defined ... it matter by the way? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
497 views
1 answer
    I'm trying to build a project in Xcode but I get the following errors Implicit declaration of function 'clear' is ... way to turn it off. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
718 views
1 answer
    I am trying to understand how pointer incrementing and dereferencing go together, and I did this to try it out ... I doing something wrong here? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
666 views
1 answer
    I'm using GCC 9.2.0 on both an ancient Linux (RedHat 5.2) and modern macOS 10.14.6 Mojave, and I ... al is safer than the worst case scenario? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
424 views
1 answer
    I have created a function that should find the numerical position of the first character of a substring in ... . Any help appreciated! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
547 views
1 answer
    I checked almost every similar post in here but I couldn't figure out how I can do what I want. What I ... the result in a strange manner. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
381 views
1 answer
    I was writing up code for a binary search algorithm. Code: #include "cs50.h" int main(void) { int n = ... really cannot figure out the mistake. 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

...