Which of the following function is used to find the first occurrence of a given

Home | Discussion Forum
Taiyari24Hour

Which of the following function is used to find the first occurrence of a given string in another string?



View More Related Question

2) The library function used to find the last occurrence of a character in a string is

3) Which of the following function is used to find the first occurrence of a given string in another string?

4) What is the output of this C code?

#include <stdio.h>
#include <string.h>
int main()
{
char *str = "hello, world";
char str1[9];
strncpy(str1, str, 9);
printf("%s %d", str1, strlen(str1));
}

5) Which of the following function sets first n characters of a string to a given character?

UP Gk Online Test

taiyari24hour.com

Study 2 Online Says....
Kindly log in or signup.