This section contains a lot of c programming question and answer with explanation on the topic String. These question and answer are very much helpful for interview(campus interviews, walkin interviews, company interviews), competitive examination ,entrance test and placements. Each question having answer and explanation that would help you to understand easily. These question are designed from basic to advance level. So anyone can learn from here (beginner, fresher, engineering graduate, an experienced IT professional).
All the question of c programming are listed below on String along with detailed explanation / solution and answer.
Answer:
True
Option:
( B )
Explanation :
No explanations available for this question.
Answer:
Zero (0)
Option:
( C )
Explanation :
The strcmp return an int value that is if s1 < s2 returns a value < 0 if s1 == s2 returns 0 if s1 > s2 returns a value > 0
Answer:
strstr()
Option:
( D )
Explanation :
The function strstr() Finds the first occurrence of a substring in another string
Answer:
strrchr()
Option:
( A )
Explanation :
Declaration: char *strrchr(const char *s, int c); It scans a string s in the reverse direction, looking for a specific character c.
Answer:
gets( )
Option:
( C )
Explanation :
No explanations available for this question.