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 will be the output of the following program?

void main()
{
char str1[] = "abcd";
char str2[] = "abcd";
if(str1==str2)
printf("Equal");
else
printf("Unequal");
}

3) What will be the output of the program ?

 #include<stdio.h>
int main()
{
printf(2+"C Programming MCQ on Study 2 Online\n");
return 0;
}

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 is more appropriate for reading in a multi-word string?

UP Gk Online Test

taiyari24hour.com

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