KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
It just occurred to me That I don't know how to initialize a pointer to pointer from a non pointer value with one statement in C++: int a = 1; int** ppa = &&a; //Does not compile int** ppa = &(&a); //Does not compile int* pa = &a; //Works but is a int** ppa = &pa; //Two step solution Am I missing something, is the two statement the one and only way to do it?
Tags (comma-separated)
Save Edits
Cancel