Search
 
SCRIPT & CODE EXAMPLE
 

C

sscanf and sprintf in c

/*
The sscanf(): It reads data from a character string.
The sprintf(): This function is used to write data to a character string.
*/
#include<stdio.h>
int main(){
   char instring[]="Tutorials Point";
   char outstring[50],string1[10],string2[10];
   sscanf(instring,"%s %s",string1,string2);
   printf("%s
",string1);
   printf("%s",instring);
   return 0;
}

/*
Tutorials
Tutorials Point
*/
Comment

PREVIOUS NEXT
Code Example
C :: How to scale all columns in dataframe in R- Method 2? 
C :: taking input and converting it to a string in c 
C :: %d and %i 
C :: nc,manc 
C :: c refresher 
C :: c multithreading sum from 0 to 1000 
C :: C program to Increase 1 to all of the given Integer Digit 
C :: too many arg 
C :: resize vm boot disk with empty space 
C :: function declaration in c 
C :: comando para ejecutar hilos en c 
C :: sdl_rect 
C :: increase size of array in c 
C :: C what does /= mean 
C :: tableau c 
C :: c program for determining a character is alphabet or not 
Dart :: flutter appbar backbutton remove 
Dart :: flutter statusbar height 
Dart :: Waiting for another flutter command to release the startup lock.. 
Dart :: flutter flotingactionbutton color 
Dart :: flutter appbar trailing icon 
Dart :: flutter get device width 
Dart :: flutter chip delete 
Dart :: Floating Action Button rectangular shaped 
Dart :: alertdialog flutter barrierColor 
Dart :: dart integer division 
Dart :: six_ft_apart_rounded 
Dart :: flutter listview builder space between items 
Dart :: flutter status bar color 
Dart :: flutter async initstate 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =