pointer tag

89 questions


1 answers
130 views
0
I have a question about the c++ pointer!

Hello.I got curious while implementing the stack with a linked list.I implemented to release the memory of the node that has data that will be pop when pop operation is performed. Does the pointer of ...

2 years ago

2 answers
48 views
0
Is there a way to change the "address" of the two pointers?

The way to change the 'value' that the two pointers point to can be found with just a little search...I can't find a way to change the 'address' that the two pointers point to...Even if I try to do it...

2 years ago

1 answers
67 views
0
[C language] Input and output a string into a two-dimensional array

I'm trying to enter a string in a two-dimensional array, but it doesn't workIf the name of the two-dimensional array is matrix, is it correct that each character in the string is in matrix[i][j]?For e...


1 answers
47 views
0
Questions about member pointers in the structure

Hello.I have a question about the structure.As I study, there are cases where pointer variables are declared and used in the structure, such as char *name, What are the benefits of using it like this?...

2 years ago

1 answers
46 views
0
In the output part, the pointer loses its place

struct custom{ custom* pLink; custom* pToFl; string name;};typedef struct portNode{ int numberOfCus = 0; string flightName; custom headerNode; portNode* pLink;}flight;struct airport{ int numberOfPort ...

2 years ago

1 answers
47 views
0
Why are array names and array addresses the same?

The array name and the array address were the sameI made the pointer point to the array and printed out the pointer address, and it came out differently.Array name = array address Pointer value! = Poi...

2 years ago

2 answers
110 views
0
This is a question related to C language Heap.

typedef struct HeapElement{ DSKEY heKey; void * heData;} } HeapElement;struct Heap{ int hpMode; /* Minimize or Maximize */ int hpSize; int hpFilled; int hpGrowBy; HeapElement** hpArray; HEAPCMPFUN...

2 years ago

1 answers
47 views
0
C language array name question.

Hello, I am a student studying C language.I was curious about the name of the language array.int arr[3] = {99, 77, 55};Assume that you declared an array ofWe know that the variable arr has the address...

2 years ago

1 answers
89 views
0
Is the size of the pointer always 4?

On my computer,sizeof(char*) = 4sizeof(int*) = 4sizeof(long long*) = 4Then does the pointer size have to be 4?

2 years ago

1 answers
130 views
0
What's the difference between int * const and const* and int const *?

What's the difference?The pointer is too hard ㅜ

2 years ago
« - 4 - »

© 2024 OneMinuteCode. All rights reserved.