c tag

1304 questions


1 answers
85 views
0
Hello! I want to know why infinite loops occur.

Hello!I fell into an infinite loop while practicing c, but I can't solve it.Here's the situation.If you receive an integer between 1 and 10, you have to exit the for statement and re-enter it when you...

2 years ago

1 answers
25 views
0
This is a question related to the C language structure.

structure Date{ int year;}struct SCH{ char a[Max_Line][1024]; char b[Max_Line][1024]; struct Date c;}; To define a structure, the first structure does not fail, but the following structure continues t...

c
2 years ago

1 answers
55 views
0
It's a C language string question

The code below is a function that functions to search for a string in a string. I have a question because I don't understand something while analyzing the code.The first of the two codes below works f...

2 years ago

1 answers
101 views
0
c Functional problem of calculating the length of an array using language sizeof operation

Hello, everyone I am a student studying C language.While solving the problem of creating a function that sorts the integers of an array in descending order, obtaining the length of the array from a fu...

2 years ago

1 answers
34 views
0
It's the information olympiad issue

Information Olympiad melon field problem (http://www.jungol.co.kr/bbs/board.php?bo_table=pbank&wr_id=1520&sca=2060).I looked at the answer sheet because I didn't know, but I was surprised to s...

c oi
2 years ago

1 answers
27 views
0
c Language blanking function question!

I finished writing it, but I don't understand the strcpy part in the if part ㅜㅜㅜ

c
2 years ago

1 answers
27 views
0
Use the pointer to find the maximum and minimum values

int maxmin(int ar[]) { int *px; int min = 0, max = 0; for (px = ar; px < (sizeof(ar)/sizeof(int)); px++) { if (*px < min) { min = *px; } if (*px > max) { max = *px; } } return max-...

c
2 years ago

1 answers
31 views
0
c++ execution result question

#include<iostream>#include<string>using namespace std;class Car {private: string carNo; int productYear;public: inline Car() { string carNo = ; int productYear = 2016; } Car(string cn, i...

c++ c
2 years ago

1 answers
74 views
0
C언어 팩토리얼 재귀함수 구현 시 return 1의 의미가 뭔가요?

#define _CRT_SECURE_NO_WARNIGS#include<stdio.h>#include<stdlib.h>int factorial(int n);int main() { int n; scanf(%d, &n); printf(%d\n, factorial(n)); return 0;}int factorial(int n) { if...


1 answers
27 views
0
C Language Double Pointer Function Questions

The contents of the code are as follows.As you can see below, when the parameters are double pointers, you hand over the factorI don't know why I have to put & on the factor pointer.For example, i...

c
2 years ago
« - 76 - »

© 2024 OneMinuteCode. All rights reserved.