Interview Questions Answers.ORG
Interviewer And Interviewee Guide
C++ Pointers & FunctionsC++ Operator OverloadingC++ Exception HandlingC++ FriendC++ Inheritance Interviews Quizzes

Accounting

AccountingAccounts PayableAuditJunior AccountantSenior Accountant

Arts

Art DirectorAstrologistInternational RelationshipSociologyVisual Arts

Business and Economy

Accounts Receivable (AR)EconomicsGeneral LedgerPurchasing OfficerTaxation

CMS (Content Management System)

CMSDrupaleZ PublishJoomlaWordPress

Community

Cable OperatorFirefighter SpecialistFuneral DirectorSpeech PathologistTranslator

Engineering

Automobile EngineeringChemical EngineeringCivil EngineeringElectrical EngineeringMechanical Engineering

Management

Administrative OfficerGood Team LeaderHotel ManagementProject CoordinatorStore Keeper

Multimedia

3D AnimationCoreldrawDesign EngineerGraphics DesignerInterior Design

Accounting

Accounting ManagementBank Probationary Officer (PO)Financial Accounting Exam MCQs

Civil Engineering

Building ConstructionRailwaysRCC Structures DesignSoil Mechanics and Foundation EngineeringSurveying

Database

Data Interpretation DatabaseData-mining DatabaseSQL ServerSQL Server DBAWindow Server 2003

Engineering

Electrical EngineeringElectronic DevicesElectronics EngineeringEngineering MechanicsSoftware Engineering

General Knowledge (GK)

General Knowledge (GK)IQ (Intelligence Quotient)Permutation And CombinationPhysical CommunicationVocabulary

Information Technology (IT)

Basics of ComputerComputer KnowledgeComputer OrganizationFundamentals Of ComputerWireless Communication

Networking

Advanced NetworkingBasic NetworkingComputer Networks TestNetwork SecurityNetworking

C++ Interviews

C++ Access Control IQC++ COM ActiveX IQC++ Constructors IQC++ Containers IQC++ Exception Handling IQC++ Friend IQC++ Inheritance IQC++ Inline Function IQC++ New And Delete IQC++ Operator Overloading IQC++ Pointers & Functions IQC++ Programmer IQC++ References IQC++ Static Data IQC++ Syntax IQC++ Template IQC++ Type Checking IQC++ Virtual Functions IQ

Essential C++ Pointers & Functions Interview Questions & Answers:

Download Interview PDF

1. Where does the execution of the program starts?
a) user-defined function
b) main function
c) void function
d) none of the mentioned

b) main function

2. What are mandatory parts in function declaration?
a) return type,function name
b) return type,function name,parameters
c) both a and b
d) none of the mentioned

a) return type,function name

3. How many max number of arguments can present in function in c99 compiler?
a) 99
b) 90
c) 102
d) 127

d) 127

4. Which is more effective while calling the functions?
a) call by value
b) call by reference
c) call by pointer
d) none of the mentioned

b) call by reference

5. 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

b) 5

6. Output of this program?

#include <iostream>
using namespace std;
int main()
{
int i;
char *arr[] = {"C", "C++", "Java", "VBA"};
char *(*ptr)[4] = &arr;
cout << ++(*ptr)[2];
return 0;
}
a) ava
b) java
c) c++
d) compile time error

a) ava

7. What is the output of this program?

#include <iostream>
using namespace std;
int main()
{
int a[2][4] = {3, 6, 9, 12, 15, 18, 21, 24};
cout << *(a[1] + 2) << *(*(a + 1) + 2) << 2[1[a]];
return 0;
}
a) 15 18 21
b) 21 21 21
c) 24 24 24
d) Compile time error

b) 21 21 21

8. What is meaning of following declaration?
int(*p[5])();
a) p is pointer to function.
b) p is array of pointer to function.
c) p is pointer to such function which return type is array.
d) p is pointer to array of function

b) p is array of pointer to function.

9. What is size of generic pointer in c?
a) 0
b) 1
c) 2
d) Null

c) 2

10. How many minimum number of functions are need to be presented in c++?
a) 0
b) 1
c) 2
d) 3

b) 1

Download Interview PDF



SHARE



FeedBurner

FORUM
PRIVACY
TERMS & CONDITIONS
FEED BACK

Submit Your Feedback:


×

Thank You For Your Feedback!

Your message has been sent successfully.

Disclaimer
Interview Questions Answers .ORG is responsive and optimized web portal for individuals to get preparation for their job interviews, learning and training. Content at Interview Questions Answers .ORG might be simplified to improve our users experience. We constantly review our content to avoid errors and copyright violations, but we cannot warrant full correctness of all the content. While using this site, you agree to have read and accepted our terms of use, cookie and privacy policy. Copyright 2007-2021 by Interview Questions Answers .ORG All Rights Reserved.

Interview Questions Answers .ORG
Face Book Twitter Linkedin