Question: Subject: Computer Programming 7. Match the following declarations that are equivalent to each other. char string var[10] = Hello; char string_var[10] = ['H', 'e', 'l',

Subject: Computer Programming

Subject: Computer Programming 7. Match the following declarations that are equivalent to

each other. char string var[10] = "Hello"; char string_var[10] = ['H', 'e',

7. Match the following declarations that are equivalent to each other. char string var[10] = "Hello"; char string_var[10] = ['H', 'e', 'l', 'l', 'o', '10'); char string_var(10] = {'H', 'e', '1','1',''); char string_var[6] = "Hello"; char string_vart] = "Hello"; . (5 marks) (CLO1: PLO1: CI) 6. Determine the mistakes with the following code. char string_varl = "Hello"; strcat(string_var, " and Good-bye."); cout is in the program file. (4 marks) (CLO2: PLO3: C3)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!