-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstring28.c
More file actions
27 lines (25 loc) · 777 Bytes
/
string28.c
File metadata and controls
27 lines (25 loc) · 777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*Write a C program to check if two given Strings are Isomorphic to each other.
Two strings str1 and str2 are called isomorphic if there is a one-to-one mapping possible for every
character of str1 to every character of str2. And all occurrences of every character in ‘str1’ map to the
same character in ‘str2*/
#include<stdio.h>
#include<stdlib.h>
int main()
{
int n,i,j,k=0;
printf("enter the number of elements\n");
scanf("%d",&n);
char ch[n+1];
fflush(stdin);
printf("enter the string\n");
scanf("%[^\n]s",ch);
printf("enter the number of elements\n");
scanf("%d",&n);
char s[n+1];
fflush(stdin);
printf("enter the string\n");
scanf("%[^\n]s",s);
for(i=0;i<n;i++)
{
}
}