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
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
Get step-by-step solutions from verified subject matter experts
