445 views

1 Answer

0 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.
Position:
Show:

Related questions

0 0 votes
1 1 answer
620
620 views
deepak_8404 asked Oct 1, 2023
620 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 ...
0 0 votes
1 answers 1 answer
791
791 views
Souvik33 asked Jan 29, 2023
791 views
Consider the following C code snippets, labeled as P1, P2 and P3, the output of P1 is “X”, of P2 is “Y” and of P3 as “Z”. What is the value of “X+Y+Z”P1#include <stdio.h ...
–4 –4 votes
2 answers 2 answers
1.8k
1.8k views
Souvik33 asked Oct 27, 2022
1,772 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 0 votes
1 1 answer
763
763 views
Overflow04 asked Sep 28, 2022
763 views
Can we determine unique tree by Inorder and level order traversal .