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

Home | Discussion Forum
Taiyari24Hour

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



View More Related Question

2) What is the output of this C code?

#include <stdio.h>
int main()
{
char *str = "hello";
char str1[5];
strcpy(str, str1);
printf("%s", str1);
}

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

4) What will be the output of the program ?

 #include<stdio.h>
int main()
{
int i;
char a[] = "\0";
if(printf("%s", a))
printf("empty string\n");
else
printf("not empty string \n");
return 0;
}

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

UP Gk Online Test

taiyari24hour.com

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