Interviewer And Interviewee Guide

C++ Pointers & Functions Interview Question:

The output of this program?

#include <iostream>
using namespace std;
int main()
{
int arr[] = {4, 5, 6, 7};
int *p = (arr + 1);
cout << *p;
return 0;
}
a) 4
b) 5
c) 6
d) 7

Submitted by: Administrator
b) 5
Submitted by:

Read Online C++ Pointers & Functions Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.