All India Exams
  • Sign In / Register Sign In
Home AptitudeBankEngineeringEnglishGKInterviewOnline TestPlacement PapersReasoning
  • Home
  • Aptitude
  • Bank
  • Engineering
  • English
  • GK
  • Interview
  • Online Test
  • Placement Papers
  • Reasoning

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; }

Home EngineeringComputer Science & EngineeringC++ Multiple Choice Questions & AnswersPointers

Pointers - C++ Questions and Answers

This is the c++ programming questions and answers section on "Pointers" with explanation for various interview, competitive examination and entrance test. Solved examples with detailed answer description, explanation are given and it would be easy to understand. This article summarizes the top Pointers C++ Questions asked in the various examinations and interviews. The applicants who are very interested to know about the Pointers can refer to this page. We have provided the multiple choice questions related to the Pointers in the below Pointers C++ Online Test. For all the contenders this is the useful resource to check the questions in the Pointers C++ Quiz. Therefore, all the competitors need to learn the Pointers topic by using the questions provided in this post. Along with the answers, the contenders can also find the explanation to the Pointers C++ Questions.



Pointers C++ Questions - Pointers C++ Quiz Details

Online Test Name Pointers
Exam Type Multiple Choice Questions
Category Computer Science Engineering Quiz
Number of Questions 17


The variable that stores the address of other variable is called a pointer. Pointers are a compelling feature of the language that has many uses in the lower level programming. C++ allows to have a pointer on a pointer and so on in the programs. Like this, the applicants need to know all the points related to the Pointers in C++. The contenders can understand all the key features of the Pointers by practicing the Pointers C++ Online Test. Therfore, all the contenders need to check the given Pointers C++ Questions along with the answers. Scroll down the page and take part in the Pointers C++ Mock Test to know all the features.



Pointers C++ Multiple Choice Questions

In the below quiz, the applicants see the Pointers C++ Multiple Choice Questions with four alternatives. All the aspirants need to read the question and then check the logic that suits the question in the given options. We all know that the practice makes the man perfection in that topic. So, all the students need to practice the Pointers C++ Online Test. To understand all the types of the questions, the postulates need to check the Pointers C++ Quiz. In addition to this, the students who are searching for many more quizzes can refer to our web portal. Allindiaexams.in will be provided more online tests related to the Computer Science Engineering on their homepage.

Pointers MCQ Quiz Answers with Solutions

For the Pointers C++ Multiple Choice Questions, the aspirants can check the answers along with the solutions. All the applicants can verify the solutions to the questions and try to remember the logic. By knowing the logic behind the questions, the candidates can easily answer any question at the time of the examination. Therefore, all the students need to concentrate on the logic and the explanation to the Pointers C++ Questions.


1.

 What does the following statement mean?

     int (*fp)(char*)

  • A. pointer to a pointer
  • B. pointer to an array of chars
  • C. pointer to function taking a char* argument and returns an int
  • D. function taking a char* argument and returning a pointer to int
  • View Answer
  • Workspace
  • Report
  • Discuss

Answer & Explanation

Answer: Option C

Explanation:

pointer to function taking a char* argument and returns an int

Workspace

Report Error


2. The operator used for dereferencing or indirection is ____
  • A. *
  • B. &
  • C. ->
  • D. ->>
  • View Answer
  • Workspace
  • Report
  • Discuss

Answer & Explanation

Answer: Option A

Explanation:

*

Workspace

Report Error


3.

Choose the right option

     string* x, y;

  • A. x is a pointer to a string, y is a string
  • B. y is a pointer to a string, x is a string
  • C. both x and y are pointer to string types
  • D. none of the mentioned
  • View Answer
  • Workspace
  • Report
  • Discuss

Answer & Explanation

Answer: Option A

Explanation:

* is to be grouped with the variables not the data types.

Workspace

Report Error


4. Which one of the following is not a possible state for a pointer?
  • A. hold the address of the specific object
  • B. point one past the end of an object
  • C. zero
  • D. point to a tye
  • View Answer
  • Workspace
  • Report
  • Discuss

Answer & Explanation

Answer: Option D

Explanation:

A pointer can be in only 3 states a,b and c.

Workspace

Report Error


5. Which of the following is illegal?
  • A. int *ip;
  • B. string s, *sp = 0;
  • C. int i; double* dp = &i;
  • D. int *pi = 0;
  • View Answer
  • Workspace
  • Report
  • Discuss

Answer & Explanation

Answer: Option C

Explanation:

dp is initialized int value of i.

Workspace

Report Error


  • «
  • 1
  • 2
  • 3
  • 4
  • »

Related Topics:

  • Namespaces
  • Templates
  • Functions
  • Classes
  • Input Output Streams
  • Arrays
  • Constants
  • Inheritance
  • Operators and Statements
  • Interfaces

Mock Tests & Online Quizzes

  • Aptitude Online Test

  • Reasoning Online Test

  • GK Online Test

  • English Online Test

  • RRB Mock Test

  • RBI Mock Test

  • Free SBI Mock Test

  • IBPS Mock Test FREE

  • SSC Mock Test

  • CAT Exam Mock Test

  • GATE Mock Test

  • LIC Mock Test Series

  • MAT Mock Test

  • SEBI Mock Test

  • ESIC Mock Test

  • IT Courses Quiz

Newsletter

Contact Us

Questions and Answers

  • Aptitude Questions
  • Verbal Reasoning Questions
  • Non Verbal Reasoning Questions
  • Logical Reasoning Questions
  • Data Sufficiency Questions
  • Data Interpretation Questions
  • C Programming
  • C++ Programming
  • PHP Programming
  • Java Programming
  • eLitmus Sample Papers
  • ECE Questions and Answers
  • EEE Questions and Answers
  • Verbal Ability Questions
  • GK Questions
  • AMCAT Mock Online Test
  • LIC Mock Test
  • IBPS Mock Test

Interview Questions

  • Java Interview Questions
  • .Net Interview Questions
  • Networking Interview Questions
  • C Language Interview Questions
  • C++ Interview Questions
  • Testing Interview Questions
  • Android Interview Questions
  • HR Interview Questions
  • Group Discussion Topics
  • iOS Interview Questions
  • Web Technologies
  • Database Interview Questions
  • MS Office Interview Questions
  • Software Tools
  • Data Interpretation
  • PHP Interview Questions
  • CAT Mock Test
  • SSC Mock Test
© by AllIndiaExams.in. All Rights Reserved | Copyright | Terms of Use & Privacy Policy