Movatterモバイル変換


[0]ホーム

URL:


Sorry, we no longer support your browser
Please upgrade toMicrosoft Edge,Google Chrome, orFirefox. Learn more about ourbrowser support.
Skip to main content
Stack Overflow
  1. About
  2. For Teams
Loading…
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives
250 questions
Filter by
Sorted by
Tagged with
Advice
0votes
3replies
96views

I'm in C and I have an int ** (2 dimensional array, it's basically a matrix, it's actually set up a little bit complicated but there's no internal aliasing, so it's not relevant).is this int** ...
0votes
3answers
216views

I have just encountered a case in this C program:void row_del(int**& a, int& row, int col, int k) { for (int j = 0; j < col; j++) { for (int i = k; i < row - 1; i++) { ...
3votes
4answers
150views

I have a small project (ed-like text editor for myself. Just want to edit some config files using it) and I have some problems with it. workspace_file->flc = malloc(sizeof(char *)); ...
1vote
3answers
235views

I have been reading something related to C language's double pointers, and I have some doubts about the following piece of code. The following piece of code is about the operation of deleting a node ...
0votes
3answers
131views

In trying to understand pointers, I created a M[x][y] array, a pointer to said array *p_M[x] and a pointer to said pointer **d_p_M. The first pointer points to the first element of a row in the array ...
2votes
3answers
164views

I have the following variablechar* a[2][2] = {{"123", "456"}, {"234", "567"}};I wanted to refer it using another variable. While the cast works, accessing ...
0votes
0answers
65views

Why not double pointer to take an array?I'm having a bit of problem understanding why an array isn't passed as a double pointer (a pointer to a pointer) since the array name itself is a pointer (...
0votes
4answers
119views

When i pass a pointer to a function and then change the pointer to a another location of the memory, I get SIGSEV or garbage values. Where is a code to demonstrate that:#include <stdio.h>void ...
2votes
2answers
133views

I wanted to try making an allocate function for a cell in a list, but when using it inside another functions, I need to add an "&" signI am aware of what "&" means in c (...
0votes
2answers
87views

I wrote a small demo program#include <stdlib.h>#include <stdio.h>typedef struct tag_node { struct tag_node *left, *right, *prev; int value;} node;int main(){ node *...
1vote
0answers
82views

I have to interact with a provided C library where one of the functions is declared as follows:int GetFileList(struct spiflash_file **ptr_spiflash_filelist, int **file_num);where **...
1vote
2answers
72views

I'm trying to use realloc in this program to increase an array's size, using pointer to pointer. But it doesn't end up doing the task:#include <stdio.h>void push(int** data){ *data = (...
Javad's user avatar
1vote
1answer
257views

I'm trying to write a trim function, but when I try to use it the compiler is giving me a runtime error or load of null pointer of type 'char' when I try to run this code:// Trim trailing whitespace...
2votes
1answer
126views

I am new to C++ programming and want to try out manual memory management (I am aware that it is advised not to use manual memory management, but I still want to give it a try).My goal was to write a ...
Markus's user avatar
-3votes
2answers
129views

I am sending this message to clear my confusion that I could not manage and handle.The foo1 function code should work. I am giving the code details for you.When I run the code, the result is a ...

153050per page
1
2345
17

Hot Network Questions

more hot questions
Newest pointer-to-pointer questions feed

[8]ページ先頭

©2009-2025 Movatter.jp