Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Identify the error in the following program.
include<iostream>
using namespace std;
void main()
{
int num[]={1,2,3,4,5,6};
num[1]==[1]num ? cout<<"Success" : cout<<"Error";
}



Identify the error in the following program. include<iostream> using namespace std; void ma..

Answer / hr

num [1] = [1] num?. You should write index number after array name but here index number is mention before array name in [1] num
So expression syntax error will be shown.
Correction : num[1] = num[1]? is the correct format.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ Interview Questions

When would you use a pointer? A reference?

0 Answers   Amazon,


Write a C++ Program to find Addition of Two Numbers.

1 Answers  


Explain the importance of method overloading in C++?

0 Answers   Akamai Technologies, Infogain,


What is a memory leak in C++?

0 Answers   Agilent,


What is Advantage and Use of THIS pointer in C++ – Scenarios?

0 Answers  


Do you know about Agilent PRECOMPILERS. ?

0 Answers   Agilent,


C++ supports multiple inheritance. What is the “diamond problem” that can occur with multiple inheritance? Give an example.

0 Answers  


Write a program to read the values a, b and c and display x, where x=a/b–c. Test the program for the following values: (a) a = 250, b = 85, c = 25 (b) a = 300, b = 70, c = 70

1 Answers  


Write a program that can take input from 3 to 8 and calculate the average?

0 Answers   Accenture,


What Is A Default Constructor in C++ ?

0 Answers   Amazon,


What is Coupling?

0 Answers   Cap Gemini,


Explain the operator overloading feature in C++ ?

0 Answers  


Categories