Question
Complete the C function to find the first occurrence of
a character c in a string str and return its index. Return -1 if not found. #include // For strlen, though not strictly needed for this loop int find_char_index(const char* str, char c) { int i = 0; while (str[i] != '\0') { if (_________ ) { // Line to complete return i; } i++; } return -1; }Solution
Correct Answer: A (Or C, they are equivalent. But A is more conventional.)
The lines joining locations with equal shaking intensity during an earthquake are called:
Under SIDBI’s “59-Minute Loan” scheme, what is the maximum loan amount disbursable within an hour?
Which of the following tracks is not part of the G20 Summits?
Asia Cup belongs to which of the following sports?
The literacy rate of males in India as per 2011 census is around________.
Consider the Following statements about Pandita Rama Bai.
1. She was amongst the important women social reformers in Maharashtra.
2. In 18...
A ‘Maharatna’ status is given to any firm who has average annual turnover during the last 3 years more than Rs _______?
Recently which Indian- American has become the youngest ever chess grandmaster?
Which of the following algae is also called kelp and found in the deep sea?
During a game of hockey, following an offence, if a player is shown a yellow card then he will be sent off the pitch for _______.