Question: Write a C program to show pointers on string Declare a string and assign a value to the string. You can assign the value in
Write a C program to show pointers on string
Declare a string and assign a value to the string. You can assign the value in the program itself or you can get the string value from the user.
Declare a pointer assign this pointer to the string.
Write C code to do the following three operations.
Print each character of the string.
Replacing all the characters of a string and printing the updated string.
Based on the position of the character, for example, you can replace an existing character with A for odd number index position and with letter B for even numbered characters in the original string.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
