Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged Pointers

0 votes
641 views
1 answer
    I have a problem with passing an argument into my program, seems to not be equal to what I put in as ... how to handle it differently though. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
535 views
1 answer
    I'm trying to write 2 classes with members that reference each other. I'm not sure if I'm doing something wrong ... does't seem to be working! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
822 views
1 answer
    I have the following multiple-choice question and I cannot figure out why (A) and (C) are incorrect, any explanation ... c; scanf("%c", c); See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
525 views
1 answer
    Hello I am a beginner in C programming language. Recently I read about call by value and call by address. ... function does not reflect caller? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
502 views
1 answer
    From what I understand by now, I can say that a reference in C# is a kind of pointer to an object which ... is defined at a low level. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
430 views
1 answer
    qsort(bt->rw[t], bt->num[t], sizeof(TRELLIS_ATOM *), (int (*)(const void *,const void *))compare_wid); bt->rw[ ... * b ) { ... return x; } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
573 views
1 answer
    Is there any difference in performance - or otherwise - between: ptr->a(); and (*ptr).a(); ? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
543 views
1 answer
    I want to give a certain linked list to a class I am making. I want the class to write into that list (eg by ... <int> list){ _myList = list; } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
512 views
1 answer
    Kinda of a noob so don't kill me here. What's the difference between the following codes? int *p; //As i ... this is a pointer to an array. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
599 views
1 answer
    I want to create a mutable struct on the stack and mutate it from helper functions. #[derive(Debug)] struct Game ... ` What am I doing wrong? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
473 views
1 answer
    I'm attempting to write Rust bindings for a C collection library (Judy Arrays [1]) which only provides itself ... as a learning exercise anyway. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
480 views
1 answer
    I am a bit confused about passing by reference and value in Go. I've seen this explained of the * in ... a pointer address as a parameter. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
667 views
1 answer
    Up until recently, I have only seen copying of structure fields done with memcpy(). In classes and online ... use memcpy() in general? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
738 views
1 answer
    How to copy an interface value in Go? My User interface: type User interface { Name() string SetName(name ... the original doesn't change? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
601 views
1 answer
    I'm converting a C++ program to C#, but this part has me confused. What does return *this mean? template< ... } How would it translate into C#? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
571 views
1 answer
    I'm trying to understand how C allocates memory on stack. I always thought variables on stack could be ... stack variables stored upside down? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
735 views
1 answer
    The following C code returns a "segmentation fault" error. I do not understand why it does not return the value 20. What ... ",*n); return 0; } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
679 views
1 answer
    I'm trying to use unit test in swift to test some of the real application behaviour. When i try to cast ... not familiar with low level details. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
481 views
1 answer
    Provided, I want to pass a modifiable parameter to a function, what should I choose: to pass it by pointer ... just a matter of personal taste? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
749 views
1 answer
    I want to get a detailed explanation on the difference between using %d and %p type for printing pointer. ... with the memory locations too? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
597 views
1 answer
    I'm trying to pass a variable of type vector<vector<double> > to a function F(double ** mat, int m, int ... give me some hints on this? Thanks. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
493 views
1 answer
    Why does the following code run? #include <iostream> class A { int num; public: void foo(){ num=5; std::cout ... of type A has been created yet? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
858 views
1 answer
    I am reading a book about Binary Search Tree and something weird came up. class BST { public: void insert(const ... Pointer of the address of t? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
611 views
1 answer
    I was wondering whether it is possible to do something like this: unsigned int address = 0x0001FBDC; // Random ... address in memory ? Thanks See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
611 views
1 answer
    We have written one program by which we try to find an address of a constant. Is it possible to do it like ... find the address of a constant? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
945 views
1 answer
    I am trying to access items in an array of structs and print the structs fields as follows printList(Album * ... doing wrong with this pointer? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
424 views
1 answer
    Is there any way to malloc a large array, but refer to it with 2D syntax? I want something like: int ... do this without using another function? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
507 views
1 answer
    I saw that range returns the key and the "copy" of the value. Is there a way for that range to return the ... any other way to modify the value? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...