Design Patterns MCQ: Design Patterns Multiple Choice Questions and Answers

Design Patterns MCQ with answers and explanations for placement tests and job interviews. These solved Design Patterns MCQ are useful for the campus placement of all freshers including Engineering Students, MCA students, Computer and IT Engineers, etc. Our Design Patterns MCQ ( Design Patterns Multiple Choice Questions ) focuses on all areas of the Design

Design Patterns MCQ: Design Patterns Multiple Choice Questions and Answers Read More »

Use of strrchr function in C/C++

The strrchr function finds the last occurrence of c (converted to a char) in the string pointed to by s. The terminating null character is also considered to be part of the string and it can be found if searching for ‘\0’.  The strrchr function defines in string.h header file and takes two arguments. Syntax

Use of strrchr function in C/C++ Read More »

How to use strstr in C

The strstr function returns a pointer to the first occurrence of string s2 in string s1. The function returns the null pointer if the string is not found. The process of matching does not include the terminating null-characters(‘\0’). Syntax of strstr in C:   char *strstr(const char *s1, const char *s2); Parameters: s1 − This

How to use strstr in C Read More »