#include<stdio.h> int main(){ char string1[20],string2[20],*ptr_str1,*ptr_str2; int i ; printf("Enter First String: "); scanf("%s",string1); printf("Enter Second String: "); scanf("%s",string2); ptr_str1 = string1; ptr_str2 = string2; while(*ptr_str1 == *ptr_str2) { if ( *ptr_str1 == '\0' || *ptr_str2 == '\0' ) break; ptr_str1++; ptr_str2++; } if( *ptr_str1 == '\0' && *ptr_str2 == '\0' ) printf("Strings Are Equal.\n"); else printf("Strings Are Not Equal.\n"); return 0; }
Most Popular
-
Befunge: Developed by : Chris Pressey Year: 1993 Stack-based, reflective, esoteric programming language.
-
-
The list below is an unordered list. You can pick any book you like, and some of the books don’t even cover a programming language at all,...
-
Recursion happens when function calls itself directly or indirectly.
Copyrights © 2016 Codzya. Powered by Blogger.
Monday, May 16, 2016
Subscribe to:
Post Comments (Atom)
Recent
Weekly
-
Befunge: Developed by : Chris Pressey Year: 1993 Stack-based, reflective, esoteric programming language.
-
-
The list below is an unordered list. You can pick any book you like, and some of the books don’t even cover a programming language at all,...
-
Recursion happens when function calls itself directly or indirectly.
-
1- The C Programming Language This book is a comprehensive guide to the finalized ANSI standard C language programming. It has b...
Comment
Get this Recent Comments Widget
!->
0 Comment to "Check Two Strings Length Equality By Using Pointers."
Post a Comment