Wednesday, 1 May 2019

ch- String



string
.8 If the two strings are identical, then strcmp() function returns 
a) -1 
b) 1 
c) 0
d) infinity 

ans c) 0

If the first string and the second string both are identical, then strcmp function returns:
A) A value of 0 
B) Either 1 or 0 
C) A value of 1 
D) Any positive integer

C provides the strcmp() function to compare strings TRUE

Explain any five string handling functions in detail with example.

Write a „C‟program to find the frequency of characters in string.

The library function __strchr______ find the first occurrence of a substring in the string 

Write a C program to find substring of string without using library functions

No comments:

Post a Comment

Index

ch-1 Introduction