Interviewer And Interviewee Guide

C++ Programmer Interview Question:

Tell us in how many ways we can initialize an int variable in C++?

Submitted by: Muhammad
In c++, variables can be initialized in two ways, the traditional C++ initialization using "=" operator and second using the constructor notation.
Traditional C++ initilization
int i = 10;
variable i will get initialized to 10.
Using C++ constructor notation
int i(10);
Submitted by: Muhammad

Read Online C++ Programmer Job Interview Questions And Answers
Copyright 2007-2025 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.

Interview Questions Answers .ORG