c tag

1304 questions


1 answers
32 views
0
[In a hurry] [C language] I wonder why the next function is safe!

My professor said that the function f4 in the lower right corner of the picture here is the word warning in the compiler I will, but they said it's a safe code. In my opinion, since the f4 function is...

c
2 years ago

1 answers
89 views
0
c Language Fibonacci sequence is queued (single link list)

#include < stdio.h>#include < stdlib.h>#define Q_SIZE 100typeef element; //int type is defined as the data type of the queue elementtypedef struct{element queue[Q_SIZE]; int front, rear; ...

2 years ago

1 answers
88 views
0
c Language stack string backwards output question

#include < stdio.h>#include < stdlib.h>#include < string.h>typedef char element; typedef struct stackNode { element data; struct stackNode *link; }stackNode;stackNode* top; void pus...

2 years ago

1 answers
31 views
0
Using Precompiled Headers

I am a beginner developer who has been studying C++ language for almost a year.If there are more source files during development, the compilation time will eventually increase, and to solve this probl...

c++ c
2 years ago

1 answers
30 views
0
[c language] When statement conditional interpretation question.

//168int main() { int arr[10] = {100,98,97,95,89,76,92,96,100,99}; int* parr = arr; int sum = 0; while(parr - arr <= 9) { sum += (*parr); parr ++; } printf (Mean of my test score: %d \n, sum/10)...

c
2 years ago

1 answers
30 views
0
Please explain the number of c language cases.

#include <stdio.h>int money(int m){ int a = 1, b = 1, c = 1; for (a = 1; 500 * a + 700 * b + 400 * c <= m; a++) { for (b = 1; 500 * a + 700 * b + 400 * c <= m; b++) { for (c = 1; 50...

c
2 years ago

1 answers
37 views
0
[Resolution] I have a question about file input/output. An unknown cause error appears.

#include <stdio.h>#include <stdlib.h>#include <fcntl.h>#include <sys/stat.h>#include <sys/types.h>#include <unistd.h>#include <string.h>#include <dirent.h&...

2 years ago

3 answers
32 views
0
Can you process all the serial data at 115200bps with Python?

Can you process all incoming serial data at 115200bps with Python?I'm converting the C-sweaved sauce to Python, but I keep missing the dataI'm putting data in a circular queue and processing it, but t...

2 years ago

1 answers
92 views
0
Let me ask you an OpenGL man-making question

How are you? I am a student studying OpenGL. I'm just using OpenGL to squeeze the sauce, but I can't do it with my humble skills, so I end up leaving a question at dawn.The source is given a notepad, ...

2 years ago

1 answers
148 views
0
I want to print only the last value of the for statement in the code below.

#pragma warning (disable:4996)#include<stdio.h>int main(void) { int cnt = 0, digt_cnt = 0, i, total = 0; char c; while (c = getchar()) { if (c == 'q') return 0; ++cnt; {if (c >= '0' &...

c for
2 years ago
« - 67 - »

© 2024 OneMinuteCode. All rights reserved.