6
7
8
A company provides network encryption for
secure data transfer. The data string is
encrypted prior to transmission and gets
decrypted at the receiving end. But due to
some technical error, the encrypted data is lost
and the received string is different from the
original string by 1 character. Arnold, a
network administrator is tasked with finding
the character that got lost in the network so
that the bug does not harm other data that is
being transferred through the network
10
11
12
13
14
15
16
17
18
19
20
21
22
Write an algorithm to help Arnold find the
Answers
Answered by
1
Answer:
hdnnznz cook for you to get home to you every day of the week and I will be there at the same time I don't have a lot of time to get home and what time would the number I gave the unit is still available I am Anshul dhaniya my videos please check and confirm my presence of
Answered by
0
C Program
#include <stdio.h>
int main()
{
char s[1000],r[1000];
scanf("%s %s", s,r);
int i;
for(i=0;s[i]!='\0';i++)
{
if(s[i]!=r[i])
{
printf("%c",s[i]);
break;
}
}
if(s[i]=='\0')
printf("NA");
}
- The definition of an array in C is a way to group together several entities of the same type. These things or things can have data types like int, float, char, double, or user-defined data types like structures.
- A variable that can hold multiple values is called an array. You could make an array for it, for instance, if you wanted to store 100 integers. data[100] int;
- An ordered group of elements of a single data type makes up an array type, a user-defined data type. Ordinary array types employ the ordinal position as the array index and have a specified upper limit on the amount of elements they can contain.
#SPJ2
Similar questions