27 questions
#include <stdio.h>#define MAX(a,b) ((a>b) ? a : b)#define MAX_DEGREE 101typedef struct { int degree; int coef[MAX_DEGREE];} } polynomial;polynomial poly_add(polynomial A, polynomial B) { poly...
What's the difference between these two in C++?Most of them use the second methodWhy is that?
How can I declare and initialize the structure in a different place?For example, in this code,typedef struct MY_TYPE { boolean flag; short int value; double stuff;} } MY_TYPE;void function(void) { MY_...
int a[5][5];int* a[5];int** a;When you get an array as a factor, you have to choose one of those three and unify itIs there any way I can turn it over without using a pointer?
Hello. strcpy(lp[1]->Korea, o); What is the cause of the error in this part?#include <stdio.h>#include <string.h>#include <stdlib.h>typedef struct{ char korea[20];} } test;int mai...
I'm posting a question because I don't understand the results of the execution during C language coding.The contents of the txt file in the directory are as follows:410:00 12:00 Lectures12:00 13:00 Lu...
#include <stdio.h>#include <conio.h> //#include <string.h> typedef struct U_Information{ //Create structure char Name [10];char RRN [15];char ID [16];char Password [16];char Phone [1...
in the Python book lbl_f = open(./mnist/ + name+ -labels-idx1-ubyte,rb)mag, lbl_count = struct.unpack(>ll, lbl_f.read(8))I saw this phrase.But what does >ll mean?On the contrary, can we use <...
typedef struct PersonArray { Person people[NUM_USER]; int total_waiting_time; int total_waiting_people; }PersonArray;PersonArray *PeopleArray;PeopleArray->total_waiting_time = 0;PeopleArray->...
- 1 - | » |
© 2024 OneMinuteCode. All rights reserved.