Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Server T-SQL Recipes

Authors: David Dye, Jason Brimhall

4th Edition

1484200616, 9781484200612

More Books

Students also viewed these Databases questions

Question

Discuss the role of motivation in financial literacy.

Answered: 1 week ago

Question

What would you do?

Answered: 1 week ago