Question: You are to create a C program which fills an integer array with integers and then you are to cast it as a char *

You are to create a C program which fills an integer array with integers and then you are to cast it as a "char * and print it out the string relating the "char * The output of the string should be your first and last name with proper capitalization, spacing and punctuation.

Your program should have structure similar to:

main() {

int A[100]; char *S;

A[0]=XXXX; A[1]=YYYY;

...

A[n]=0; -- because C strings are terminated with NULL

...

printf("My name is %s ",S);

}

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!