python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Confused with references on pointers in C++
The task is to calculate the output of the following source code without a computer, which I would say is "123 234 678 678" because ref1 is a reference on the value of ptr and in the moment ...
Elliot
Votes: 0
Answers: 1
How to initialise struct with constant members with certain address?
I am trying to initialise class object (which has constant members) with certain values and certain address. I understand that this is because members are constant but I need them to be constant. I tr...
bugrishka
Votes: 0
Answers: 1
Error: invalid operands of types className<int>* and className<int>* to binary 'operator+'
I'm trying to make a class where I create a number based off of nodes linking to each other, allowing for larger integers. I overloaded the operator to allow individual nodes to add to each other as s...

Sean Zlatev
Votes: 0
Answers: 0
Go function to return pointer of any type?
Using Go 1.16
Currently no plan to use Go 1.18
We have a scenario of using below struct:
type X struct {
M1 *int64
M2 *string
M3 *[]string
}
For below code:
package main
import (
&...
overexchange
Votes: 0
Answers: 1