You are viewing a single comment's thread. Return to all comments →
int main() { char ch,s[100] ;
scanf("%c",&ch); printf("%c\n",ch); scanf("%s",s); printf("%s\n",s); scanf("\n"); scanf("%[^\n]%*c", s); // or gets(s); can be used
printf("%s",s); return 0; /* Enter your code here. Read input from STDIN. Print output to STDOUT */ return 0; }
Seems like cookies are disabled on this browser, please enable them to open this website
Playing With Characters
You are viewing a single comment's thread. Return to all comments →
include
include
include
include
int main() { char ch,s[100] ;
printf("%s",s); return 0; /* Enter your code here. Read input from STDIN. Print output to STDOUT */
return 0; }