Answer Posted / nakubu
There is no difference; C++ is pretty much whitespace
agnostic. What depends is its use:
int function(int &r)
{
...
}
is a function declaration that accepts an integer pointer as
a parameter, and:
int a = 7;
int &r = a;
will make a reference to an integer.
The spacing around the & makes no difference.
| Is This Answer Correct ? | 13 Yes | 0 No |
Post New Answer View All Answers
solve the problem in the programming language C++"if a five digit number is input through the keyboard.Write a program to calculate the sum of its digits(hint: use the modulus operator)
write a program that prompt the user to enter his height and weight,then calculate the body mass index and show the algorithm used
write a program that reads a series of strings and prints only those strings begging with letter "b"
i really need help about this.. write a program to display the set of odd and even numbers separately. find the highest and lowest value of the given numbers.
i don't know about working of nested for loop can any one help me
Write a simple encryption program using string function which apply the substitution method.
How to swap two ASCII numbers?
Write a program that print in screen a tree with its height taken from user by entering number of 4 digits and find the odd numbers then calculate the sum of odd numbers so he get the height of tree?
how to take time as input in the format (12:02:13) from user so that controls remains between these columns?
Code for Method of Handling Factorials of Any Size?
write a program using virtual function to find the transposing of a square matrix?
what mean void creat_object?in public class in this code class A{ public: int x; A(){ cout << endl<< "Constructor A";} ~A(){ cout << endl<< "Destructor A, x is\t"<< x;} }; void create_object(); void main() { A a; a.x=10; { A c; c.x=20; } create_object(); } void create_object() { A b; b.x=30; }
write a function that allocates memory for a single data type passed as a parameter.the function uses the new operator and return a pointer to the allocated memory.the function must catch and handle any exception during allocation
Code for Easily Using Hash Table?
How to Split Strings with Regex in Managed C++ Applications?