19. To Read An Address and Displaying it using C Program.
How does this program work?
- This program is used to store data using a string variable.
- Again this string is displaying using " %s " in c language.
Here is the code
#include <stdio.h>
int main(void)
{
char str[200];
printf("Enter your Address\n");
scanf("%[^\n]", &str); //Scanning the whole string, including the white spaces
printf("Your Address Is: %s", str);
return 0;
}