Answers for "reading strings from user in c"

C
1

c read string

#include <stdio.h>
#define LEN 50

char text[LEN];
fgets(text,stdin,LEN);
//use text
Posted by: Guest on June-09-2021
1

getting string input in c

#include<stdio.h>
#include<conio.h>
void main(){
chat sam[10];
clrscr();
printf("ENTER STRING NAME :");
gets(s);
printf("STRING :%s",s);
getch();
}
Posted by: Guest on March-16-2021

Code answers related to "C"

Browse Popular Code Answers by Language