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

which type of code is human code?

7 Answers   HCL, Wipro,


no of comparators required for 4 bit parallel A/D comparator

4 Answers  


We take the area of collector wide comparison to base and emitter. Why?

0 Answers  


Which of the listed is NOT a FlexiHopper frequency band? Which of the listed is NOT a FlexiHopper feature?

0 Answers   NSN,


what is meant by modulation?

5 Answers  






Why bjt is known as current controlled device and fet is known as voltage controlled device?

0 Answers  


Draw the interface diagram of two microcontrollers?

1 Answers   L&T,


What is the use of radar?

0 Answers  


why we use +ve load distribution in 24v , and -ve load distribution in 48volt.?

1 Answers  


plz send last 5 year paper set for JE-II(ELECTRICAL)Exam held on few month in mumbai

0 Answers   RRB,


When batteries of different voltages are connected in parallel what happends

4 Answers   ID, Infosys,


What is the approximate cost of the corrosion penetration monitoring system(cpmp)?

0 Answers  


Categories
  • Civil Engineering Interview Questions Civil Engineering (5085)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4451)
  • Electrical Engineering Interview Questions Electrical Engineering (16632)
  • 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)