Answers for "pointers in functions c++"

C++
2

c++ function as pointer

// c++ function as pointer syntax
type(*function_name)(params...){
 	// body
}
Posted by: Guest on January-07-2022
2

pointer in c++

// Variable is used to store value
int a = 5;
cout << a; //output is 5

// Pointer is used to store address of variable
int a = 5;
int *ab;
ab = &a; //& is used get address of the variable
cout << ab; // Output is address of variable
Posted by: Guest on May-27-2021
1

pointers c++

baz = *foo;
Posted by: Guest on February-18-2021

Browse Popular Code Answers by Language