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
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
Business Studies,
1 month ago
English,
1 month ago
English,
1 month ago
Physics,
3 months ago
Social Sciences,
3 months ago
Chemistry,
10 months ago
Biology,
10 months ago
Math,
10 months ago