pointer tag

89 questions


2 answers
54 views
0
Python pointer

Hello.p = Noneif b.x == c.x: //When Python has the following code, make the variable p a pointer for readability and externally I'd like to use corbLike this.*p = None #virtual grammarif ...: p = &...

2 years ago

1 answers
50 views
0
This is a question about language pointer!!

There was no error when I touched the pointer like that, but sometimes there is an error like that.No matter how much I think about it, I don't think there will be any errors, but it's not like that e...

2 years ago

1 answers
50 views
0
I need scanf_s identifier

#include <stdio.h>void get_sum_diff(int x, int y, int* p_sum, int* p_diff);int main(void){ int x; int y; int r, s; printf(Enter an integer); scanf_s(%d %d, &x, &y); void get_sum_diff(x,...

2 years ago

2 answers
50 views
0
C Questions about how to use the value of the language input variable in other functions as well

The selectAction function is a function that receives values of col, row, and direction from the user. You want to receive a value through scanf from this function.The three values you enter must also...

2 years ago

1 answers
51 views
0
c Language dynamic assignment array deduplication question.

#include <stdio.h>#include <stdlib.h>int main(){ int cnt, i, j; printf (How many numbers do you want to enter? : ); scanf_s(%d, &cnt); int* arr = (int*)malloc(sizeof(int)*cnt); int* ar...

2 years ago

1 answers
68 views
0
Accept() function question

serv_sock=socket(PF_INET, SOCK_STREAM, 0);//...clnt_sock=accept(serv_sock, (struct sockaddr*)&clnt_addr,&clnt_addr_size); acceptI understand what the argument roles of the function mean. Howev...

2 years ago

1 answers
130 views
0
Function pointer question.

I understand that typeef or using can be used to simplify the use of function pointers.typedef void func1(int, int);typedef void (&func2)(int, int);typedef void (*func3)(int, int);By the way, I wa...


1 answers
59 views
0
Question about using C pointer array as a parameter

#include <stdio.h>int strO (char* myStr[]) { char str[] = hello; myStr[0] = str; // < Part to be modified? return 0;}int main() { char* string_list[10] = {NULL}; strO(string_list); printf(%s\...


1 answers
118 views
0
When you dynamically assign a C language array...

#include <stdio.h>int main(){ int * arr1 = (int *)malloc(sizeof(int) * 6); int * arr2 = (int *)malloc(sizeof(int) * 6); int * arr3 = (int *)malloc(sizeof(int) * 6); arr1[3][2] = { {3, 4}, {5, ...

« - 9 -

© 2024 OneMinuteCode. All rights reserved.