Pointers C++ Questions And Answers
Here you can find Pointers C++ Questions and Answers.
Why Pointers C++ Questions and Answers Required?
In this Pointers C++ Questions and Answers section you can learn and practice Pointers C++ Questions and Answers to improve your skills in order to face technical inerview conducted by Banks. By Practicing these
interview questions, you can easily crack any Bank Exams interview.
Where can I get Pointers C++ Questions and Answers?
AllIndiaExams provides you lots Pointers C++ Questions and Answers with proper explanation. Fully solved examples with detailed answer description. All students, freshers can download Pointers C++ Questions
and Answers as PDF files and eBooks.
How to solve these Pointers C++ Questions and Answers?
You no need to worry, we have given lots of Pointers C++ Questions and Answers and also we have provided lots of FAQ's to quickly answer the questions in the Bank Exams interview.
Pointers C++ Questions & Answers
1. What does the following statement mean?
int (*fp)(char*)
Pointers C++ Questions & Answers
2. The operator used for dereferencing or indirection is ____
Pointers C++ Questions & Answers
3. Choose the right option
string* x, y;
Pointers C++ Questions & Answers
4. Which one of the following is not a possible state for a pointer?
Pointers C++ Questions & Answers
5. Which of the following is illegal?
Pointers C++ Questions & Answers
6. What will happen in this code?
int a = 100, b = 200;
int *p = &a, *q = &b;
p = q;
Pointers C++ Questions & Answers
7. What is the output of this program?
#include < iostream >
using namespace std;
int main()
{
int a = 5, b = 10, c = 15;
int *arr[ ] = {&a, &b, &c};
cout << arr[1];
return 0;
}
Pointers C++ Questions & Answers
8. The correct statement for a function that takes pointer to a float, a pointer to a pointer to a char and returns a pointer to a pointer to a integer is
Pointers C++ Questions & Answers
9. What is the output of this program?
#include < iostream >
using namespace std;
int main()
{
char arr[20];
int i;
for(i = 0; i < 10; i++)
*(arr + i) = 65 + i;
*(arr + i) = '\0';
cout << arr;
return(0);
}
Pointers C++ Questions & Answers
10. What is the output of this program?
#include < iostream >
using namespace std;
int main()
{
char *ptr;
char Str[] = "abcdefg";
ptr = Str;
ptr += 5;
cout << ptr;
return 0;
}