Posts

Program to decide whether a given number is positive, negative or zero number.

Image
Here, user will input a number and program will assign it in variable 'a' using scanf. After that, the value inside variable is checked, whether it is greater than 0 or not and if it is greater than 0 then inputted number is positive and if it is less than 0, the inputted number is negative. But if these two condition is not satisfied then the inputted number must be equal to 0.  Output  

When you use structure and union in C ?

Structure is a user defined data type which hold or store homogeneous data item or element in a single variable. It is a Combination of primitive and derived data type. In C language , array is also a user defined data type but array hold or store only similar type of data, If we want to store different type of data, then we need to define separate variable for each type of data. For this problem, Structure is best suit.   A union is quite similar to the structures in C. It also stores different data types in the same memory location. It is also a user defined data type same like structure. It is more near to structure. Union can be defined in same manner as structures, for defining union, use union keyword where as for defining structure, use struct keyword.  When you need to manipulate the data for all member variables then use structure. When need to manipulate only on member then use union. All the properties of the structure are same for union, except initialization proce...

Why Android Studio ?

Image
A ndroid Studioo is the official IDE for Android development, and with a single download includes everything you need to begin developing Android Apps.  The reason why we should prefer Android Studio are : -Flexible Gradle based build system. -Build variants and multiple apk file generation. -Code templates to help you build common app features. -Built in support for Google Cloud Platform, making it easy to integrate Google Cloud Messaging and App Engine. -Rich layout editor with support for drag and drop theme editing. -Hint tools to catch performance, usability , version compatibility, and other problem. -Official Google Support and usual updates that need no migration.

Android Versions and Android SDK Manager

 Google, releases almost every year (or even sooner than a year), a new Android version in order to update the mobile operating system, so that it contains new features and possibilities and of course to fix things that might not work in the right way.  So, each version of Android has it's own SDK (software development kit), so that we can use to build apps that can run on and include all the latest features Android has added in its latest versions. This means that it is essential that we keep up updating our applications with the latest features all the time, and it possible, without losing the consistency of the previous Android versions.  As part of the Setup Wizard you will already have the latest SDK available to you, however it's useful to know how to install additional SDK's if you need to work with the older devices that do not run the latest version of Android.    SDK's allow you to create AVD's (Android Virtual Device) to test your apps on, customized ...

Positive Impact computers

 - Any professional individual like doctors, engineers, businessman etc undergo a change in their style or working pattern after they get the knowledge of computer. ' - An individual becomes more competent to take a decision due to computer because all the information required to take the decision is provided by the computer on time. As a result, any individuals or institutions get success very fast . - The person working at the managerial level becomes less dependent in low level staff like clerks and accountants . Their accessibility to the information increases tremendously. This improves their working pattern and efficiency, which benefits the organization and ultimately affects the society positively. - In common life also, an individual gets benefited with computer technology. When airports, hospitals, banks, departmental stores have been computerized, people get quick service due to the computer system. - Computers have created new fields of employment. These employments are...

Monitors

 The monitor is the most frequently used soft copy output device. A computer screen, that is, monitor, is a TV like display unite attached to the computer on which the output can be displayed and viewed. Images on the monitor are created by the collection of dots. These dots are known as pictures' elements or pixels. More the pixels on the monitor, sharper the picture is. The computer screen can be either a monochrome display or a color display. A monochrome screen uses only one color to display text on a contrasting background. A color screen commonly displays 256 colors. Nowadays, users are increasingly viewing video clips, animated objects, and complex graphics. Due to this, Monitors are becoming more popular. Monitors are available in various screen sizes like 14, 15,17,19,21 inches. Notebook- computer screen sizes are usually smaller, typically ranging from 12-15 inches. Most of the monitors are made up of CRT (Cathode Ray Tube) in which the image is formed, whose pixels are c...

C program to check whether inputted number is prime number or not.

Image
P rime numbers are divisible only by 1 and by themselves. 2,3,5,7,11 etc are prime numbers. These numbers are only divisible by 1 and by themselves. To check whether a given number is prime number or not, at first, we start a loop from 1 to given number and check as if it is divisible the loop incremented number and if it is, then we will print that given number is prime number and also if it is 2, we will directly check it and print that given number is prime number. Have a look here, The Output