Question: The declaration int * pi; defines the variable pi as a / an The declaration char name [ ] = abc; defines the

The declaration int *pi; defines the variable "pi" as a/an
The declaration char name[]= "abc"; defines the variable "name" as a/an
of
initialized with the sting
The declaration char *name = "abc"; defines the variable "name" as a/an
to a/an
initialized with the
of the string
constant
Given the declarations int a[3]; int *p;
the statement p=a; initializes the
the statement p=&a[1]; initializes the
array element
p with the
p with the
] the integer value
J.
If a[
of
J then the next statement *(p+1)=5; assigns to the
The statement *(p+i)=5; is equivalent to the statement a [
The declaration int * pi; defines the variable "

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 Programming Questions!