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


I am stuck up with a question on appending of two arrays

I am writing the code for the same, I am appending two
strings this way

int main()
{
string s1 = "Welcome to C++";
string s2 = "C++ improves the logic ability";
string s3 = s1 + s2;
cout<<s3<<endl;
}
But if I go ahead with the integer datatype , it doesnt work

int main()
{
int arr[4] = {2,3,4,5};
int arr1[4] = {6,7,8,9};
int arr3[9] ;
arr3 = arr + arr1;//displays error
arr3 = arr ++ arr1; // works properly
}

Can anyone please clear my doubt in this question ?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Electronics Communications Interview Questions

what is asynchronous data transfer???

0 Answers  


Discuss any three advantages that digital systems have over analog

4 Answers  


What are the benefits of fibre channel sans?

1 Answers  


can any one tell difference between 802D and 810D???

0 Answers   Siemens,


. The IT giant Tirnop has recently crossed a head count of 150000 and earnings of $7 billion. As one of the forerunners in the technology front, Tirnop continues to lead the way in products and services in India. At Tirnop, all programmers are equal in every respect. They receive identical salaries ans also write code at the same rate. Suppose 12 such programmers take 12 minutes to write 12 lines of code in total. How long will it take 72 programmers to write 72 lines of code in total? a) 18 b) 72 c) 6 d) 12

2 Answers   TCS,


why you chose engineering?

14 Answers  


i want to get rrb solved paper of s.e. & j.e.. on my mail mraj.meena@gmail.com

0 Answers  


How can the race-around problem be solved?

0 Answers  


What is the turn-off time for converter grade scrs and inverter grade scrs?

0 Answers  


What is Electronics Engineering how to become a good Electronic Engineer and which company to approach in India (Bangalore)

7 Answers   Telecom, Xansa,


compare the delay in sending x-bit msg over k-hop path in ckt switched nw nin lightil loaded packet swithed nw. the ckt setup time is s per hop,the packet size is p bits n data rate is' b' bps under what condition does packet nw have lower delay?

0 Answers   Mtech,


What is hole theory

0 Answers  


Categories
  • Civil Engineering Interview Questions Civil Engineering (5086)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4456)
  • Electrical Engineering Interview Questions Electrical Engineering (16639)
  • Electronics Communications Interview Questions Electronics Communications (3918)
  • Chemical Engineering Interview Questions Chemical Engineering (1095)
  • Aeronautical Engineering Interview Questions Aeronautical Engineering (239)
  • Bio Engineering Interview Questions Bio Engineering (96)
  • Metallurgy Interview Questions Metallurgy (361)
  • Industrial Engineering Interview Questions Industrial Engineering (259)
  • Instrumentation Interview Questions Instrumentation (3014)
  • Automobile Engineering Interview Questions Automobile Engineering (332)
  • Mechatronics Engineering Interview Questions Mechatronics Engineering (97)
  • Marine Engineering Interview Questions Marine Engineering (124)
  • Power Plant Engineering Interview Questions Power Plant Engineering (172)
  • Textile Engineering Interview Questions Textile Engineering (575)
  • Production Engineering Interview Questions Production Engineering (25)
  • Satellite Systems Engineering Interview Questions Satellite Systems Engineering (106)
  • Engineering AllOther Interview Questions Engineering AllOther (1379)