Introduction to Programming
This blog assists in mastering C and C++ programming skills from basics to advanced levels.
Pages
My First C Program
Basic Concepts
Looping
Branching
Patterns
Arrays
Functions
File Management
Strings
Special C Programs
Flowchart
Algorithm
Structure
Pointer
RAPTOR
Interview Questions
Quizzes
Question Bank
Games
Security
Networking
C++ Programming
ઈન્ટરનેટનું સામાન્ય જ્ઞાન
Projects
Contact us
Saturday, June 11, 2016
Use of strstr function in C program.
//String Processing using strstr function.
#include<stdio.h>
#include<string.h>
int main()
{
char str1[10]="12345", str2[10]="23";
int n;
n=strstr(str1,str2);
puts(n);
return 0;
}
//Output
2345
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment