Question: 1. What is the difference between the following two variable definitions? a. char a[6] = Hello; b. char* b = Hello; 2. what is the

1. What is the difference between the following two variable definitions?

a. char a[6] = "Hello";

b. char* b = "Hello";

2. what is the difference between the following three variable definitions?

a. char* p = nullptr;

b. char* q = " ";

c. char r[1] = { '\0' };

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Lets break down each part of the question to understand the differences between the variable definitions Question 1 a char a6 Hello Type This defines ... View full answer

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!