
Search In
// A C++ program for splitting a string using strtok()
#include <stdio.h>
#include <string.h>
int main()
{
char str[] = "First-Demo-Example";
char *token = strtok(str, "-"); // Returns first token
while (token != NUL
I found that sometimes button showing text in upper case.
I have found the solution that we just need to define property textAllCaps in the xml file.
For example
<Button
android:layout_width="match_parent"
andr
Printing hello without using main method:
We can use static block to print something without using main method as static block executes as soon as the class is loaded. To ignore exception "System.exit(0);" is used which terminates th
I found it in the net and I want to know the explanation of it's algorithm. I'm having a hard time to understand this. thank you so much :)
import java.util.Scanner;
class BinarySearch
{
public static void main(String args[])
{
int c, firs
The quantifiers describes the number of event of a character to match against. For ease of use we divide three types of quantifier:
Greedy
Reluctant
Possessive
1. Greedy quantifier:
With the help of greedy quantifier match
Hello Friends,
Today we will discuss about PHP 7 another new feature which is The null coalesce operator. This operator denoted by ?? (double question mark) and it replace the ternary operator feature in a single line with less code than terna
Hi,
I have a question related to system attack I recently faced. My system was attacked by a virus, which also resulted in issues with the portable hard drive. Since I didn’t have any antivirus installed, my portable Hard Drive Data is infecte
Exception is a unexpected output during execution of code in programing language. Due to exception execution of program stops.In Ruby, Exceptions are basically used to handle different type of errors, which may raise during execution of program and w
There are element operators provided by LINQ which are capable of returning single or specific element from a collection. These element operators can be defined as follows :-
Single : This element operator is capable of returning single sp
Implement a C program that, using a modular structure, is able to handle simple strings. For that, implement the following functions.
A function with the prototype int CountSpaces(char *str) that, making use of pointer notation only, ret
