What will be the output of the following C++ code? #include <iostream> #include <string> #include <cstdlib> using namespace ...
View QuestionPick the correct statement about references in C++.
a) References stores the address of variables b) References and variables both have the same address c) References use ...
View QuestionWhat is the difference between references and pointers?
a) References are an alias for a variable whereas pointer stores the address of a variable b) References ...
View Question
What will be the output of the following C++ code?
#include <iostream>
#include <string>
#include <cstdlib>
using namespace std;
int main(int argc, char const *argv[])
{
int a = 5;
int *p = &a;
int *(&q) = p;
cout<< q;
return 0;
}
What will be the output of the following C++ code? #include <iostream> #include <string> #include <cstdlib> using ...
View Question
What will be the output of the following C++ code?
#include <iostream>
#include <string>
#include <cstdlib>
using namespace std;
int main(int argc, char const *argv[])
{
int a = 5;
int *p = &a;
int &q = p;
cout<< p;
return 0;
}
What will be the output of the following C++ code? #include <iostream> #include <string> #include <cstdlib> using ...
View Question
What will be the output of the following C++ code?
#include <iostream>
#include <string>
#include <cstdlib>
using namespace std;
int main(int argc, char const *argv[])
{
int a = 5;
int &p = a;
cout<< p;
return 0;
}
What will be the output of the following C++ code? #include <iostream> #include <string> #include <cstdlib> using ...
View Question
What will be the output of the following C++ code?
#include <iostream>
#include <string>
#include <cstdlib>
using namespace std;
int main(int argc, char const *argv[])
{
int &p;
int a = 5;
&p = a;
cout<< p;
return 0;
}
What will be the output of the following C++ code? #include <iostream> #include <string> #include <cstdlib> using ...
View Question
What will be the output of the following C++ code?
#include <iostream>
#include <string>
#include <cstdlib>
using namespace std;
int main(int argc, char const *argv[])
{
int &q = 5;
cout<< q;
return 0;
}
What will be the output of the following C++ code? #include <iostream> #include <string> #include <cstdlib> using ...
View QuestionWhat are the references in C++?
a) An alternative name for already existing variables b) A pointer to a variable c) A ...
View QuestionIdentify the correct sentence regarding inequality between reference and pointer.
a) we can not create the array of reference b) we can create the Array of ...
View Question