pointer tag

89 questions


1 answers
134 views
0
Can I delete the NULL pointer?

NULLThe pointer doesn't point at anything, so there's nothing to do with deleteIs it safe to delete?Should I check whether it is NULL or not and delete?


1 answers
89 views
0
It says it's a violation of access, but I don't know if you declared it or if it's out of memory...I don't know the cause.

It says Access violation but I don't know the cause.What I want is a program that takes the class, name, and department and makes it look prettyWe tried to float in two ways: return the structure and ...

2 years ago

1 answers
60 views
0
How many pointers can be used in one variable?

It's the same as the title.How many pointers can be used in one variable?int ****************a;Can I put on an infinite number of stickers?

2 years ago

1 answers
42 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

1 answers
44 views
0
This is a language pointer question "T"

void array(){int random; srand(time(NULL)); for (random = 0; random < 50; random++) { printf(/%d, rand() % 1000 + 1); }}We're going to create a random number function like thisI want to flip this...

2 years ago

1 answers
102 views
0
class member variable pointer? When do you use it?

class Car{ public: int speed;};int main(){ int Car::*pSpeed = &Car::speed; return 0;}I saw this code, and I wonder when int Car::*pSpeed=&Car::speed; is used in main.

2 years ago

1 answers
45 views
0
cLanguage problem

It's a language problem Using a two-dimensional integer array, input and output a 3X3 matrix, and create an appropriate function for the first row It's a question to print out after exchanging two lin...

2 years ago

1 answers
124 views
0
Question about function pointer using typeef

Hello.You can study function pointers using typeef.As I studied the usage example, there is a source like below.What I'm curious about is what is the return data type of the abc function?And return (t...


1 answers
69 views
0
What is the difference between constint*, constint*, and int const*?

const int*const int * constint const * What's the difference between these three?


1 answers
43 views
0
Cannot transfer 2D array as function

Receive a two-dimensional array as a function void myFunction(double** myArray){ myArray[x][y] = 5; etc...}There's a function like thisdouble anArray[10][10];myFunction(anArray)I'm getting an error ...

« - 5 - »

© 2024 OneMinuteCode. All rights reserved.