Create an string input taker using C
Hey guys once again welcome to the Decoders blog, I hope you all are doing well and today I'm present with another logic but this time with something different it is a C logic which will help us to print an string input form the users given as an input.
#include<stdio.h>
int main()
{
char string;
printf("Enter your name:");
scanf("%s",&string);
printf("Your name is %s",&string); //This & symbol is used here in order to
print the string value of the given input
return(0);
}
Comments
Post a Comment