More string operations in C language
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
int main()
{
char ch;
char str[10];
char sen[25];
scanf("%c", &ch);
scanf("%s", str);
scanf("\n");
scanf("%[^\n]%*c", sen);
printf("%c\n", ch);
printf("%s\n", str);
printf("%s", sen);
return 0;
}
No comments:
Post a Comment