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 :: c style array 
C :: how to print value of pointer in c 
C :: how to combine strings in c 
C :: stdio.h in c 
C :: redirect to url page asp.net mvc 
C :: c check if char is an operator 
C :: how to check if a string pointer is empty in c 
C :: how to scan in c 
C :: how to represent unsigned char with % c 
C :: Hello world in C programming language 
C :: go Iterating over an array using a range operator 
C :: space x 
C :: c radians 
C :: putchar in c 
C :: warning: function returns address of local variable [-Wreturn-local-addr] 
C :: loading builder in flutter 
C :: how to add 1 to 10 in c 
C :: c for 
C :: how to read 2d array from a file in c 
C :: string array in c 
C :: create node in c 
C :: pandoc set margins pdf 
C :: square in c 
C :: c programming exercises 
C :: scan c 
C :: string in c 
C :: exponentials in c 
C :: c atoi atof 
C :: convert c to phyton 
C :: Fibonacci program c pthread 
ADD CONTENT
Topic
Content
Source link
Name
7+7 =