Computer Science, asked by zdtcvg, 3 months ago

Write a choice based program to demonstrate the using of different string functions and methods. Take

a string as input from user and display the available choices, and call the respective functions and

methods.​

Answers

Answered by Anonymous
7

Explanation:

#include <stdio.h>

#include <string.h>

int main()

{

/* String Declaration*/

char nickname[20];

printf("Enter your Nick name:");

/* I am reading the input string and storing it in nickname

* Array name alone works as a base address of array so

* we can use nickname instead of &nickname here

*/

scanf("%s", nickname);

/*Displaying String*/

printf("%s",nickname);

return 0;

}

Output:

Enter your Nick name:Negan

Negan

mark me brainliest

here is ur answer

this might help you

good night

Similar questions