Posts

Showing posts with the label nasa

Why The Gigantic Rain Clouds Appears Grey?

Image
Why are Rain Clouds Grey? The reason why overcast days are so dismal T o understand why clouds can appear grey, you first need to know why they also appear white. It’s all to do with the reflection of light. Clouds are created when air and  water vapour  near the ground warms up and rises. As it gets uplifted, the water vapour  condenses, and the droplets join together to make clouds. The more condensation there is, the more droplets there are and the bigger the clouds become. When light from the Sun passes through these large aggregations of water vapour , the droplets scatter the light in all directions. The droplets are tiny and spread out enough to scatter the entire spectrum of light, which means that they will appear white. As more water droplets accumulate and the clouds get larger, less light is able to penetrate through the cloud. What we see from the g...

Learn about the Mechanism of Exception Handling in C++

Exception Handling Mechanism in C++ To overcome the limitations of the conventional error handling mechanism, an exception handling mechanism was introduced in C++ in 1989.C++ exception handling mechanism not only guarantees the detection and handling of run-time errors but also provides a way to separate the error handling code from the rest of the program. This makes the program less complex, more readable and efficient, as the normal execution path is not interrupted for checking errors. Moreover, the error handling routine (called exception handler) is invoked automatically whenever an error occurs. Learn More:  An exception usually carries three types of information with it, namely, the type of exception , the place where the exception has occurred and the context information such as error message and other state information. C++ exception handling mechanism mainly uses three keywords, try, throw and catch. A ...

Learn What is Exception Handling in 2 Minutes

Exception Handling Writing error-free programs is the main objective of programmers. However, whenever a program is written for the first time, it usually contains errors. These errors are classified  mainly into three types, namely, compile-time errors, logical errors and run time errors. The compile-time errors and logical errors can be detected and removed by exhaustive testing and debugging. However, run-time errors are difficult to detect and trap. The run-time errors are usually referred to as exceptions. An exception is an unexpected event that occurs during the execution of a program and alters the normal flow of the program or terminates the program abnormally. The errors that can cause exceptions can range from simple programming errors, such as opening an invalid file for reading, invalid array index, etc., to serious errors such as running out of memory. Exceptions can be classified into two types, namely, synchronous exc...

Social Walls

Follow Me on

Share this Post

Recommended for You