c tag

1304 questions


1 answers
41 views
0
C Language Pointer Question

int arr[6] = { 1, 2, 3, 4, 5, 6 };int (*parr)[6] = &arr;Is parr a pointer variable that points to an array arr of size 6?

2 years ago

2 answers
82 views
0
To view the assembled results in gcc

I received a task to analyze the results of the compiled code, but I'm not used to gcc yet, so I don't know what options to give. How do I view the assembly code of C/C++ in gcc?

2 years ago

1 answers
113 views
0
void factor of C

Which is the better way?I don't like it because the chords look messy when I use VOIDThe professor tells me to write a void. Why is that?

2 years ago

1 answers
129 views
0
I need a code to find out if I'm using the C++ compiler during runtime

Not using #ifdefCan you make a function that returns 0 when using C compiler and 1 when using C++ compiler?For example, int isCPP(){ return sizeof(char) == sizeof 'c';}//orint isCPP(){ typedef int T; ...


1 answers
28 views
0
I have a question about the C language pointer.

/* 10.2.c -- A program that copies an array in three ways.*/int main(void){double source[5] = {1.1,2.2,3.3,4.4,5.5};double target1[5] = {1.0,1.0,1.0,1.0,1.0};double target2[5] = {1.0};Double target3[5...

c
2 years ago

1 answers
87 views
0
I have a question for strcpy

C//Enter your code here#include <stdio.h>#include <stdlib.h>typedef int element;typeef structure DListNode { // Dual Connection Node Type element data; struct DListNode* llink; struct DLis...

2 years ago

1 answers
26 views
0
[c Language] To reference variables in external programs

Can't you refer to the address of the variable in the external program?For example.After verifying the address of variable a declared in the executable file call.exe.Write the address of a directly on...

c
2 years ago

1 answers
37 views
0
This is a question about changing the seed encryption value of Java to C language.

If the value is exceeded by an encrypted value (using seed128 cbckisa open source) on the web, we will try to decrypt it with c.Java Side private static byte pbUserKey[] = StringUtil.StringToByteLengt...

c++ c
2 years ago

1 answers
68 views
0
Can you combine the pointer array and the array pointer?

void com() { struct TTT { char isDup[10]; char readData[10]; struct TTT* link[9]; }; struct TTT case1; char* data; data = read(); for (int i = 0; i < 9; i++) { case1.readData[i] = data[i]; ...

2 years ago

1 answers
114 views
0
After initializing the c language string, I wrote down the tap in more detail when I input/output the rest of the file.

int main(void){int c, i;//Implement as a link list FILE *cities, *members, *reser;// departure city, member list, reservation list char ID[20];char PW[20];char *ID_B;char *PW_B; char *NEW_ID; char *NE...

2 years ago
« - 87 - »

© 2024 OneMinuteCode. All rights reserved.