Search
 
SCRIPT & CODE EXAMPLE
 

C

string input in c

#include <stdio.h>

int main () {
   char str1[90], str2[90];

   printf("Enter name: 
");
   scanf("%s", &str1);

   printf("Enter your website name: 
");
   scanf("%s", &str2);
Comment

string input c

scanf("%[^
]s", &name);//Take input while '
' not occur
Comment

input string value in c

#include <stdio.h>
int main()
{
   char str[20];
   scanf("%[^
]%*c", str);
   printf("%s", str);
 
   return 0;
}
Comment

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();
}
Comment

PREVIOUS NEXT
Code Example
C :: round float in c 
C :: HOW TO ADD FORM IN BOOTSTRAp 
C :: volatile keyword in c 
C :: Bootstrap textarea from 
C :: typedef vs #define 
C :: getchar 
C :: unable to locate package dos2unix 
C :: quick sort c 
C :: c exit 
C :: how compress string in c 
C :: continue statement in c 
C :: function array median 
C :: c print characters 
C :: how to transform a char to ascii code in c 
C :: choose random number with weight 
C :: boolean input in c 
C :: check if string contains a character in c 
C :: how to read from a file in c 
C :: scopes in c 
C :: get docker 
C :: bitwise operators 
C :: C/AL Convertion of Decimal to String/Text 
C :: count number of items using delimiter 
C :: run steam as root 
C :: how to find folders from a c program 
C :: arrow keys gaming keyboard 
C :: how to input a para in c 
C :: visa germany algeria 
C :: C static libraries creation 
C :: write the data in perticulare memmory loaction in C 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =