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 read csv 
C :: how to pass an array of structs as an argument in c 
C :: what is system function in c 
C :: c program for swapping of two numbers using temporary variable 
C :: read string with space c 
C :: function for calculate the average and standard deviation of table 
C :: initialize array in c with 0 
C :: slug urls django 
C :: set value of boolean in c 
C :: Firebase Connecting with ESP8266 
C :: c int to char 
C :: prime number c program 
C :: remove string from string c 
C :: print variable adress c 
C :: responsive form bootstrap 4 
C :: c language string 
C :: enregistrement en c 
C :: c remove last charachter from string 
C :: mongo connect db 
C :: pid of a process in c 
C :: c language 
C :: sleep in c 
C :: Write a C program to multiply two integers using pointers. 
C :: bool c++ 
C :: writing structures in c 
C :: what is %d in C 
C :: pathlib exclude hidden file 
C :: Syntax for creating a node 
C :: anthracnose pronounce 
C :: C access global variable same name 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =