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

What is the purpose of a constructor? Destructor?

0 Answers   Amazon,


What are "pure virtual" functions?

0 Answers   Adobe, Alter, iNautix,


How to stop class inheritance in C++ with condition that object creation should be allowed

0 Answers  


How to generate random numbers in C++ with a range?

0 Answers  


Tell How To Check Whether A Linked List Is Circular ?

1 Answers   IBS, Infosys,


How will you print a list of all unique words from a string which may contain repeated words?

0 Answers   Adobe,


dynamic scoping is

0 Answers   Siemens,


Explain what happens when an exception is thrown in C++.

0 Answers   Amazon,


What is partial specialization or template specialization?

0 Answers   Amazon,


CDPATH shell variable is in(c-shell)

0 Answers   Siemens,


How many times will this loop execute? Explain your answer.

0 Answers  


What are the advantages and disadvantages of B-star trees over Binary trees?

0 Answers  


Categories