Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write the following tasks using C lang Task 1 Write a program that use a char array to store 5 characters inputted from the keyboard,

image text in transcribedwrite the following tasks using C lang

Task 1 Write a program that use a char array to store 5 characters inputted from the keyboard, the program should then output the five characters on one line. After this the program should prompt the user to enter a number between 1 and 5 and a new character. The program should replace the old character at that position with the new character entered and output the new set of characters. EG. If the user initially inputs a,b2c2d2e Then enters 3 and z, the program should output a,bsz2d2 e. Task 2 Write a program that asks the user to input a word. The program should then check whether the user has entered a palindrome (). () Palindromes are words or phrases that are spelt the same backwards as they are forward Eg. rotor, radar and level are all palindromic words. - Use pointer technique

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_2

Step: 3

blur-text-image_3

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

Visual Basic Net Database Programming

Authors: Rod Stephens

1st Edition

0789726815, 978-0789726810

Students also viewed these Databases questions

Question

The nature and importance of the global marketplace.

Answered: 1 week ago