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
336 views
1 answer
    In the code below when i give input as 1 10 2 1 2 2, sum is printed as 52 and sum3 as 31.200001 whereas it shld ... ("0.0000 "); } return 0; } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
393 views
1 answer
    I'm having trouble understanding how some pointers work. I always thought that when you created a pointer variable (p), ... 's what I'm after. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
346 views
1 answer
    I'm trying to detect across all linux if screensaver is running or if screen is locked. People recommended dbus. ... qdubs, gdbus, etc? Thanks See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
372 views
1 answer
    I'm trying to print escape characters as characters or strings using this code: while((c = fgetc(fp))! ... actually prints the escape sequence. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
235 views
1 answer
    I'm trying to interface a pressure sensor (MS5803-14BA) with my board (NUCLEO-STM32L073RZ). According to ... to see my current implementation. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
339 views
1 answer
    ( I'm quoting ISO/IEC 9899:201x ) Here we see that, integer constant expression has an integer type: 6. ... references to the latest Standard ) See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
359 views
1 answer
    Code: #include "stdio.h" #include "string.h" int main() { char *p = "abc"; printf("p is %s " ... dumped) Could someone explain why this happens? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
275 views
1 answer
    Say I have the defacto standard x86 CPU with 3 level of Caches, L1/L2 private, and L3 shared among cores. ... which needs to execute in usecs. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
333 views
1 answer
    I'm working on a project where i need to post the data i acquire to a Google form and obtain the ... viewform Any help would be appreciated. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
423 views
1 answer
    I am working on a project that has my computer communicating with an arduino board that reads the sensor output ... problem. Thanks in advance. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
287 views
1 answer
    I have used inotify in Linux, to get the event raised when ever the network interface link changes. whenever interface ... event->len; } } } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
366 views
1 answer
    How can I determine what day the week starts with in the current locale? I need this in C, presumably via the <time.h> header. Thanks. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
362 views
1 answer
    I am trying to display currently running process in Ubuntu. Right now I am using system() function to print ... function name or any manual ? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
405 views
1 answer
    I was trying to do this in ANSI C: include <stdio.h> int main() { printf("%d", 22); int j = 0; ... any 'official' source like the GNU C manual. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
370 views
1 answer
    I am new to C/C++, so I have a couple of questions about a basic type: I have read somewhere that the ... how to achieve such a large range? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
422 views
1 answer
    I want to read arrow keypresses in my c program and replace them(immediately in the terminal itself) by some ... &termios_save); return 0; } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
324 views
1 answer
    I've noticed something really strange. say I've got the following structure defined typedef struct { uint32_t a; uint16_t ... what's going on ? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
352 views
1 answer
    I'm writing a C program to study the usage of function strtok(). Here is my code: #include <stdio.h> ... this part for my homework project. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
260 views
1 answer
    My code: #include <cstdio> #include "omp.h" int main() { omp_set_num_threads(4); #pragma omp parallel { #pragma ... the for loop four times? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
395 views
1 answer
    Consider inline assembly like this: uint64_t flags; asm ("pushf pop %0" : "=rm"(flags) : : /* ??? */) ... of memory at the top of stack? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
326 views
1 answer
    I ran this simple program, but when I convert from int to double, the result is zero. The sqrt of the zeros then ... i, sqrt((double) i)); } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
352 views
1 answer
    I'm trying to do something that I thought would be pretty basic but either I'm just ignoring something ... Any tips would be appreciated. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
345 views
1 answer
    I am wondering if things like this : int a = ...; long b = ...; if (a < b) doSomethings(); ... in the comparison, what about others type ? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
345 views
1 answer
    I've written a simple kernel that tries to write two characters to the frame buffer. If I define a string literal in ... I try to boot the iso? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
311 views
1 answer
    I don't want to use system() in my C program, because system(3) blocks and this is not what I want. What is the optimal way to do it? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
376 views
1 answer
    There is such code: #include <stdio.h> int main() { float d = 1.0; int i = 2; printf("%d %d", d ... is printed wrong (1072693248 instead of 2)? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
342 views
1 answer
    Is it absolutely necessary to always build and register a new WNDCLASS(EX) for your application? And then use the ... and text-boxes etc.? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
696 views
1 answer
    Relevant code snippet: char input [1024]; printf("Enter text. Press enter on blank line to exit. "); scanf( ... seems to work. Any ideas? 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

...