Posts

How "or" / "||" operator works in C++/Cpp ? Does it check all the conditions or it stops as soon as it encounters a condition that is true?

 In C++, the || (logical OR) operator performs short-circuit evaluation . This means that it evaluates conditions from left to right and stops as soon as it encounters a condition that is true . If the left-hand side condition is true , the right-hand side condition is not checked because, for an OR operation, only one true operand is sufficient to yield true . # include < iostream > using namespace std ; bool checkA () {     cout << " Checking A \n ";     return true ; } bool checkB () {     cout << " Checking B \n ";     return false ; } int main () {     if ( checkA () || checkB ()) {         cout << " Result is true \n ";     }     return 0 ; } Output: Checking A Result is true # include < iostream > using namespace std ; bool checkA () {     cout << " Checking A \n ";     return false ; } bool checkB () { ...

Access here -> READ MORE

WELCOME:  *  RGIPT

The Evolution of Facebook: From Dorm Room to Global Phenomenon

Image
  In the early 2000s, a young Harvard student named Mark Zuckerberg embarked on a journey that would change the digital landscape forever. Armed with a vision of connecting people across the globe, he created Facebook , a social networking platform that would redefine communication, relationships, and even the way we perceive privacy. 1. The Birth of Facebook Harvard Connection to Thefacebook: In February 2004, Zuckerberg, along with his college roommates, launched a website called “Thefacebook” . Initially restricted to Harvard University students, it allowed them to create profiles, connect with classmates, and share information. The platform quickly gained popularity, expanding to other Ivy League universities and eventually opening its doors to the general public. Features That Shaped Facebook: Profiles : Users could create personal profiles, upload photos, and share their interests. News Feed : Introduced in 2006, the News Feed displayed updates from friends and pages. Status...

Lakshadweep: Jewel of the Arabian Sea - Unveiling the Serenity of Tropical Paradise

Image
Introduction : Nestled in the heart of the Arabian Sea, the enchanting archipelago of Lakshadweep beckons with its untouched beauty and tranquil allure. This hidden gem, often referred to as the ' Jewel of the Arabian Sea ,' is a collection of 36 pristine islands , each a testament to nature's artistry. As the sun-kissed waves gently lap against powdery white shores, Lakshadweep unveils a world where time seems to slow down, inviting all who seek a respite from the chaos of everyday life. Attraction: 1. Untouched Coral Reefs: Beneath the crystal-clear waters, a kaleidoscope of colors awaits. Lakshadweep is renowned for its untouched coral reefs, providing a captivating underwater world for snorkelers and divers. Immerse yourself in a realm where vibrant corals and exotic marine life dance beneath the ocean surface. 2. Turquoise Lagoons and Silken Sands: Picture-perfect turquoise lagoons surround the islands, creating a stunning contrast against the pure white sands. These...

Save and effective ways to kill mosquitoes

Image
Use Mosquito Nets Sleep under a mosquito net to prevent mosquito bites while sleeping.                                                    Use Mosquito Repellent Apply mosquito repellent with DEET or picaridin to exposed skin to repel mosquitoes. Eliminate Standing Water Empty any containers or objects that can collect water, such as flower pots, birdbaths, and buckets, to eliminate mosquito breeding grounds. Use Insecticides Use insecticides, such as pyrethroids or organophosphates, to kill mosquitoes in areas where they rest, such as walls and ceilings.

How to loose weight ?

Image
  Losing weight generally involves a combination of healthy eating, regular physical activity, and making sustainable lifestyle changes. Here are some guidelines to help you get started on your weight loss journey: 1. Set realistic goals : Determine how much weight you want to lose and set a realistic timeframe for achieving your goal. Remember that losing weight gradually (about 1-2 pounds per week) is generally considered safe and more sustainable than rapid weight loss. 2. Create a calorie deficit : To lose weight, you need to consume fewer calories than you burn. Calculate your daily calorie needs based on your age, gender, weight, height, and activity level. Then, create a calorie deficit by consuming fewer calories through your diet or increasing your physical activity, or a combination of both. 3. Adopt a healthy eating plan : Focus on consuming nutrient-dense foods that are low in calories but high in vitamins, minerals, and fiber. Include plenty of fruits, vegetables, whol...

How can we start earning online ?

Image
M aking money online has become increasingly popular, and there are various ways to generate income through online platforms. Here are some common methods to consider: 1. Freelancing : Offer your skills and services as a freelancer in areas such as writing , graphic design , programming , marketing , or virtual assistance . Platforms like Upwork , Freelancer , and Fiverr connect freelancers with clients.  2. Online Surveys and Microtasks : Participate in online surveys or complete small tasks on platforms like Swagbucks , Amazon Mechanical Turk , or Clickworker . While the earnings may be modest, these options require minimal effort.  3. Affiliate Marketing : Promote products or services through affiliate links on your blog, website, or social media platforms. You earn a commission for each sale or referral made through your unique affiliate link. Popular affiliate networks include Amazon Associates , CJ Affiliate , and ShareASale . 4. E-commerce and Dropshipping : Set u...