We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- C
- Introduction
- Playing With Characters
- Discussions
Playing With Characters
Playing With Characters
Sort by
recency
|
816 Discussions
|
Please Login in order to post a comment
Here is problem solution - HackerRank Playing with characters problem solution
how to print the whole sentence "Welcome to C"
scanf("%c", &ch); reads a single character. scanf("%s", s); reads a string until a space is encountered, leaving the newline character in the buffer. getchar(); consumes the newline character left in the buffer after reading the string. scanf("%[^\n]%*c", sen); then reads the entire sentence correctly.
char ch; scanf("%c",&ch); printf("%c\n",ch);
what is solution of complitation error'
include
include
include
include
int main() { char str1[1000]; char str2[1000]; char str3[1000];
gets(str1); gets(str2); gets(str3); printf("%s\n%s\n",str1,str2); printf("%s\n",str3); /* Enter your code here. Read input from STDIN. Print output to STDOUT */
return 0; }