SP(TYBTech) Get link Facebook X Pinterest Email Other Apps POWERPOINT PRESENTATIONS NOTES VIDEO LECTURES System programming question bank for UT-1 CHAPTERWISE MCQs: Click here for SP lab manual 1. Use of strtok() function click here for Prelim sample paper 1 click here for Prelim sample paper 2 click here for Prelim sample paper 3 Get link Facebook X Pinterest Email Other Apps Comments Amaraja5:25 PM#include#include#includevoid main(){ char s1[50]="pandharpur"; const char s2[]="pan"; char *s3,*s4; clrscr(); s3=strtok(s1,s2); printf("%s",s3); s4=strtok(NULL,s3); printf("%s",s4); getch();}ReplyDeleteRepliesReplyUnknown4:21 PM#include#includevoid main(){char s1[50]="Architecture";const char s2[]="ch;char *s3,*s4;clrscr();s3=strtok(s1,s2);printf("%s",s3);s4=strtok(NULL,s3);printf("%s",s4);getch();}ReplyDeleteRepliesReplyUnknown4:32 PM#include#include#includevoid main(){ char s1[20]; char s2[5]=" "; char *s3 ; char *s4; clrscr(); printf("\n enter 1st string="); scanf("%s",s1); //printf("\n enter 2nd string="); //scanf("%s",s2); s3= strtok(s1,s2); printf("\n= %s ",s3); s4=strtok(NULL,s2); printf("\n =%s",s4); getch();}ReplyDeleteRepliesReplyUnknown4:35 PM#include#include#includevoid main(){ char s1[20]; char s2[5]=" "; char *s3 ; char *s4; clrscr(); printf("\n enter 1st string="); scanf("%s",s1); //printf("\n enter 2nd string="); //scanf("%s",s2); s3= strtok(s1,s2); printf("\n= %s ",s3); s4=strtok(NULL,s2); printf("\n =%s",s4); getch();}ReplyDeleteRepliesReplyUnknown4:37 PM#include#include#includevoid main(){ char s1[20]; char s2[5]=" "; char *s3 ; char *s4; clrscr(); printf("\n enter 1st string="); scanf("%s",s1); //printf("\n enter 2nd string="); //scanf("%s",s2); s3= strtok(s1,s2); printf("\n= %s ",s3); s4=strtok(NULL,s2); printf("\n =%s",s4); getch();}ReplyDeleteRepliesReplynamrata hake4:47 PM#include#include#includevoid main(){ char s1[20]; char s2[5]=" "; char *s3 ; char *s4; clrscr(); printf("\n enter 1st string="); scanf("%s",s1); //printf("\n enter 2nd string="); //scanf("%s",s2); s3= strtok(s1,s2); printf("\n= %s ",s3); s4=strtok(NULL,s2); printf("\n =%s",s4); getch();}ReplyDeleteRepliesReplyBeing Traveller12:01 PM#include//#include#includevoid main(){ char o[20]; char s[5]=" "; char *a1 ; char *a2; printf("\n\tEnter The 1st String="); scanf("%s",o); a1= strtok(o,s); printf("\n\t= %s ",a1); a2=strtok(NULL,s); printf("\n\t=%s\n",a2);}ReplyDeleteRepliesReplyUnknown12:20 PM#include#include#includeint main(){char x[15];char y[15];char *s,*n;printf("\n Enter The String =");scanf("%s",x);printf("\n Enter The Position =");scanf("%s",y);s=strtok(x,y);printf("\n%s",s);n=strtok(NULL,y);printf("\n %s",n);return 0;}ReplyDeleteRepliesReplyUnknown11:45 AM#include#include#includevoid main(){char s1[50]="pandharpur";const char s2[]="pan";char *s3,*s4;clrscr();s3=strtok(s1,s2);printf("%s",s3);s4=strtok(NULL,s3);printf("%s",s4);getch();}ReplyDeleteRepliesReplyAishwarya Deshpande10:01 AM#include#include#includevoid main(){ char c[]="MOVE AREG , A"; char *s1,*s2,*s3,*s4; s1=strtok(c," "); printf("%s\n",s1); s2=strtok(NULL," "); printf("%s\n",s2); s3=strtok(NULL," "); printf("%s\n",s3); s4=strtok(NULL," "); printf("%s\n",s4); }ReplyDeleteRepliesReplySaurabh Adhatrao10:23 AM#include#include#includevoid main(){char c[]="MOVE AREG , A";char *s1,*s2,*s3,*s4;s1=strtok(c," ");printf("%s\n",s1);s2=strtok(NULL," ");printf("%s\n",s2);s3=strtok(NULL," ");printf("%s\n",s3);s4=strtok(NULL," ");printf("%s\n",s4);}ReplyDeleteRepliesReplyUnknown10:26 AMThis comment has been removed by the author.ReplyDeleteRepliesReplyUnknown10:27 AM#include#include#includevoid main(){char c[]="MOVE AREG , A";char *s1,*s2,*s3,*s4;s1=strtok(c," ");printf("%s\n",s1);s2=strtok(NULL," ");printf("%s\n",s2);s3=strtok(NULL," ");printf("%s\n",s3);s4=strtok(NULL," ");printf("%s\n",s4);}ReplyDeleteRepliesReplyAdd commentLoad more... Post a Comment
#include
ReplyDelete#include
#include
void main()
{
char s1[50]="pandharpur";
const char s2[]="pan";
char *s3,*s4;
clrscr();
s3=strtok(s1,s2);
printf("%s",s3);
s4=strtok(NULL,s3);
printf("%s",s4);
getch();
}
#include
ReplyDelete#include
void main()
{
char s1[50]="Architecture";
const char s2[]="ch;
char *s3,*s4;
clrscr();
s3=strtok(s1,s2);
printf("%s",s3);
s4=strtok(NULL,s3);
printf("%s",s4);
getch();
}
#include
ReplyDelete#include
#include
void main()
{
char s1[20];
char s2[5]=" ";
char *s3 ;
char *s4;
clrscr();
printf("\n enter 1st string=");
scanf("%s",s1);
//printf("\n enter 2nd string=");
//scanf("%s",s2);
s3= strtok(s1,s2);
printf("\n= %s ",s3);
s4=strtok(NULL,s2);
printf("\n =%s",s4);
getch();
}
#include
ReplyDelete#include
#include
void main()
{
char s1[20];
char s2[5]=" ";
char *s3 ;
char *s4;
clrscr();
printf("\n enter 1st string=");
scanf("%s",s1);
//printf("\n enter 2nd string=");
//scanf("%s",s2);
s3= strtok(s1,s2);
printf("\n= %s ",s3);
s4=strtok(NULL,s2);
printf("\n =%s",s4);
getch();
}
#include
ReplyDelete#include
#include
void main()
{
char s1[20];
char s2[5]=" ";
char *s3 ;
char *s4;
clrscr();
printf("\n enter 1st string=");
scanf("%s",s1);
//printf("\n enter 2nd string=");
//scanf("%s",s2);
s3= strtok(s1,s2);
printf("\n= %s ",s3);
s4=strtok(NULL,s2);
printf("\n =%s",s4);
getch();
}
#include
ReplyDelete#include
#include
void main()
{
char s1[20];
char s2[5]=" ";
char *s3 ;
char *s4;
clrscr();
printf("\n enter 1st string=");
scanf("%s",s1);
//printf("\n enter 2nd string=");
//scanf("%s",s2);
s3= strtok(s1,s2);
printf("\n= %s ",s3);
s4=strtok(NULL,s2);
printf("\n =%s",s4);
getch();
}
#include
ReplyDelete//#include
#include
void main()
{
char o[20];
char s[5]=" ";
char *a1 ;
char *a2;
printf("\n\tEnter The 1st String=");
scanf("%s",o);
a1= strtok(o,s);
printf("\n\t= %s ",a1);
a2=strtok(NULL,s);
printf("\n\t=%s\n",a2);
}
#include
ReplyDelete#include
#include
int main()
{
char x[15];
char y[15];
char *s,*n;
printf("\n Enter The String =");
scanf("%s",x);
printf("\n Enter The Position =");
scanf("%s",y);
s=strtok(x,y);
printf("\n%s",s);
n=strtok(NULL,y);
printf("\n %s",n);
return 0;
}
#include
ReplyDelete#include
#include
void main()
{
char s1[50]="pandharpur";
const char s2[]="pan";
char *s3,*s4;
clrscr();
s3=strtok(s1,s2);
printf("%s",s3);
s4=strtok(NULL,s3);
printf("%s",s4);
getch();
}
#include
ReplyDelete#include
#include
void main()
{
char c[]="MOVE AREG , A";
char *s1,*s2,*s3,*s4;
s1=strtok(c," ");
printf("%s\n",s1);
s2=strtok(NULL," ");
printf("%s\n",s2);
s3=strtok(NULL," ");
printf("%s\n",s3);
s4=strtok(NULL," ");
printf("%s\n",s4);
}
#include
ReplyDelete#include
#include
void main()
{
char c[]="MOVE AREG , A";
char *s1,*s2,*s3,*s4;
s1=strtok(c," ");
printf("%s\n",s1);
s2=strtok(NULL," ");
printf("%s\n",s2);
s3=strtok(NULL," ");
printf("%s\n",s3);
s4=strtok(NULL," ");
printf("%s\n",s4);
}
This comment has been removed by the author.
ReplyDelete#include
ReplyDelete#include
#include
void main()
{
char c[]="MOVE AREG , A";
char *s1,*s2,*s3,*s4;
s1=strtok(c," ");
printf("%s\n",s1);
s2=strtok(NULL," ");
printf("%s\n",s2);
s3=strtok(NULL," ");
printf("%s\n",s3);
s4=strtok(NULL," ");
printf("%s\n",s4);
}