215 views

1 Answer

0 votes
0 votes
Printing the character, therefore option A and C are eliminated.

while loop starting with i=0, and whenever character repeated, if condition satisfies and print it and return 0 ( means directly exit from main function )

Option : B :- Prints the first repeated character in the string.

for this type of problems, take a sample i/p array and you can check the result.

Related questions

0 votes
0 votes
1 answer
1
deepak_8404 asked Oct 1, 2023
293 views
Consider a lower triangular matrix stored in row major order as p[-25 - - + 749][-25 - - - + 749] with base address = 6800, size of each element = 6 byte. Find the value ...
–4 votes
–4 votes
2 answers
3
Souvik33 asked Oct 27, 2022
649 views
*MSQ*The following figure depicts a a. A tree and only treeb. A tree with 3 nodesc. A graph (Since every tree is a graph)d. A graph and only graph
0 votes
0 votes
1 answer
4
Overflow04 asked Sep 28, 2022
453 views
Can we determine unique tree by Inorder and level order traversal .