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

![each other. char string var[10] = "Hello"; char string_var[10] = ['H', 'e',](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66ef0a4995ea1_76966ef0a490b447.jpg)
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
Get step-by-step solutions from verified subject matter experts
