pointer tag

89 questions


1 answers
476 views
0
Does the code you wrote match what the assignment requires?

I wonder if the code I wrote understands the title of the assignment?The results are correct.I admit that the code is quite hard to read and hard to see.I'm sorry.If there is a shortage of common sens...

1 years ago

1 answers
280 views
0
[C] Does the code you wrote match what is required?

プログラミングI'm a beginner in programming. I think there are many things that I can't do, but please be gentle.I wonder if the code I wrote understands the title of the assignment?The results are correct.T...

1 years ago

2 answers
380 views
0
About char str, pointer, and *p.

For the following code, can the char type str[] only be displayed before the null is in the middle of the string?Also, can the pointer p hold only one memory address that the address points to?For exa...

2 years ago

3 answers
146 views
0
Understanding Pointers and Indirect Operators

I don't know why the code below is valid for char str [100] = Hello; not char*str = Hello;I understand that I can only put an address in the pointer, but is that not true?Also, does this mean that Hel...

2 years ago

1 answers
130 views
0
a program that uses an array as a pointer and a pointer as a register in C language

You are creating a program that randomly generates numbers within a specified range and places them in order of lowest in select_sort.I was able to program an array, but I don't know how to make it in...

2 years ago

3 answers
150 views
0
About void pointers

In the Description C pointer Pointers to void are not equal to other pointers.(The behavior of the void pointers depends on the system.) However, if the pointers to the two void are both null pointers...

2 years ago

1 answers
93 views
0
Reasons why a for statement using a self-made bidirectional list is not spinning

Nice to meet you.This is my first time asking a question.I am currently working on making my own bi-directional lists using pointers in C++ without using STL.In the midst of this, I have written to th...

2 years ago

2 answers
120 views
0
How to Pass Mat Data (or Vector Data) to Shared Memory

I am having trouble knowing how to pass OpenCV Mat data or Vector data to shared memory.I may not understand how to use the pointer, but I would appreciate it if you could give me some advice.I wanted...

2 years ago

1 answers
83 views
0
Please let me know if there is a way to get the first address of any line of a two-dimensional array "quickly."

(I was confused about the multiplication time.Please see 774RR's response.)Suppose you have a large array of about 1000 x 1000 (such as an image).iTo get the first address on the line,double lightness...

2 years ago

2 answers
112 views
0
Why can't I printf the pointer at %s?

I have a question when I see 's answer that I don't know how to behave when I refer to charstr[] with a pointer.Why shouldn't I write printf(str:%s\n,p);?*p calls the character code for the address in...

2 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.