Sunday, 29 September 2019

Writing your First C Program and Running it - C Programming Tutorial for Beginners


Writing your First C Program and Running it - C Programming Tutorial for Beginners

 C is a programming language developed at AT & T’s Bell Laboratories of USA in 1972. It was designed and written by a man named Dennis Ritchie. It was initially designed for programming UNIX operating system. Now the software tool as well as the C compiler is written in C.Major parts of popular operating systems like Windows, UNIX, Linux is still written in C.
  

C Hello World! Example: Your First Program
Here, is a Hello World program in C
#include<stdio.h>   //Pre-processor directive
void main()         //main function declaration
{
printf("Hello World"); //to output the string on   a display    
getch ();           //terminating function
}

  
Here is the code explanation:
Pre-processor directive
#include is a pre-processor directive in 'C.'
#include <stdio.h>, stdio is the library where the function printf is defined. printf is used for generating output. Before using this function, we have to first include the required file, also known as a header file (.h).

 The main function
The main function is a part of every 'C' program. We can represent the main function in various forms, such as:
  • main()
  • int main()
  • void main()
  • main(void)
  • void main(void)
  • int main(void)
The empty parentheses indicate that this function does not take any argument, value or a parameter. You can also represent this explicitly by placing the keyword void inside the parentheses. The keyword void means the function does not return any value, in this case, the last statement is always getch ().

  
#include<stdio.h>   //Pre-processor directive
int main()          //main function declaration
{
printf("Hello World");  //to output the string  on a display
return 0;           //terminating function
}
In the above example, the keyword int means the function will return an integer value. In this case, the last statement should always return 0.


The source code
After the main function has been declared, we have to specify the opening and closing parentheses. Curly brackets { }, indicate the starting and end of a program. These brackets must be always put after the main function. All the program code is written inside these brackets, such as declarative and executable part.
The printf function generates the output by passing the text "Hello World!"
The semicolon ; determines the end of the statement. In C, each statement must end with a semicolon.

 Summary
  • The main function is a mandatory part of every 'C' program.
  • To use the functionality of a header file, we have to include the file at the beginning of our program.
  • Every 'C' program follows a basic structure.
·         We will write a simple program that will say hello to us. Let's start.


Friday, 27 September 2019

What Is Chassis Intrusion Detection?


What Is Chassis Intrusion Detection?
Chassis intrusion detection is a feature of certain motherboards. If anyone opens the computer's chassis, or case, Windows will notify the user with a pop-up message the next time he turns on his computer.
Features
Chassis intrusion detection has three different settings: Enabled, Enabled-Silent and Disabled. Enabled-Silent, which is the default setting, creates an event noting that it detected an intrusion without notifying the user. The Enabled setting will alert the user by displaying an on-screen message, while the Disabled option will ignore any chassis intrusion.
Disabling
Turn off chassis intrusion detection by entering the system setup screen, selecting the "System Security" option, then switching the "Chassis Intrusion" option to "Disabled." Windows will no longer alert the user that someone has opened the case.
Benefits
Chassis intrusion detection is a helpful security feature, especially for large corporate networks. This intrusion detection method can alert a system administrator when someone opens a computer case; she can then investigate it and determine if anyone has tampered with the computer hardware.


Wednesday, 18 September 2019

All Computer Parts Explained


Monitor:

A monitor appears like a TV screen. It shows no matter you kind on the keyboard or draw with the mouse.
What is pc
A pc is associate degree electronic machine that processes information. data given to the pc is termed information. pc works in no time. It saves some time and energy. It doesn't create mistakes. It will bear in mind a great deal of things. the essential elements of a pc area unit shown within the image given here.

               
The basic elements of a ADP system are:
1.            Monitor
2.            hardware (Central process Unit)
3.            Keyboard
4.            Mouse
5.            Speakers
6.            Printer
Let us ascertain concerning some a lot of devices which will be connected to a pc.
Input Devices:
Devices that facilitate United States place information into the pc area unit known as input devices. they assist in giving directions to the pc. allow us to find out about many input devices.
 Keyboard:
The keyboard is employed for getting into information into the pc system. It will kind words, numbers and symbols. a lot of data of input device  Click here.


Mouse: 
The mouse may be a inform device. you'll offer input to the pc with the assistance of the mouse. a lot of data of mouse
Click here.

 Joystick:
A joystick makes pc games a great deal a lot of fun. once it's captive, it passes data to the pc.
 Microphone:

A mike is that the microphone which will be hooked up to a pc. It permits you to input seems like speech and songs into the pc. you'll record your voice with the assistance of a mike.

Web Camera:

 A web camera is employed to require live photos videos. you'll save them within the pc.
Scanner: 
A Scanner Copies footage and pages, and turns them into pictures which will be saved on a pc.
Processing Device:
All the inputs area unit keep, sorted, organized and altered by a pc. The device that helps a pc do thus is termed the process device. The process device in an exceedingly pc is understood as
 Central process Unit (CPU).

Output Devices:
The elements of a pc that facilitate United States to point out the results of process area unit known as out devices. allow us to find out about many output devices.
  Monitor:

A monitor appears like a TV screen. It shows no matter you kind on the keyboard or draw with the mouse.
Printer:
A printer prints the results of your work from the pc screen on a sheet of paper. this can be known as a output signal.
 Speakers:

The speakers area unit the output devices that manufacture differing kinds of sounds processed by the pc. you'll hear songs or speeches keep within the pc with the assistance of speakers.
Headphone:
You can hear music or any sound from a pc with the assistance of headphones while not worrying others.
Storage Devices:
The elements of a pc that area unit used for storing information area unit known as. Storing information area unit known as storage devices. they assist in storing any work done on a pc for good. allow us to find out about many storage devices.
 Hard Disk:

Inside the hardware there's a tough disk. it's created from one or a lot of auriferous disks. It stores an oversized quantity of knowledge.
Floppy Disk:
A diskette stores little amounts little amounts of knowledge. It works once it's inserted into the floppy drive. The floppy drive is mounted within the hardware.
 optical disc (CD):
A CD stores persistently a lot of data than a diskette. It works once it's inserted into the CD drive. The CD drive is mounted within the hardware. Note: Not handling the CD properly could lead to loss of knowledge keep.
All pc elements gloss :
Compact disc: It stores data persistently over a diskette.
CPU: The process device in an exceedingly pc.
Data: it's the knowledge given to the pc.
Electronic machine: it's the machine that runs with the assistance of electricity.
Floppy disk: It stores atiny low quantity of knowledge.
Hard disk: It stores an oversized quantity of knowledge.
Headphones: The device for being attentive to the recorded sounds while not worrying others.
Input devices: These facilitate United States place date into the pc.
Joystick: it's used for taking part in pc games.
Keyboard: this can be wont to enter information into the pc system.
Microphone: it's used for recording sound.
Monitor: It shows no matter you kind on the keyboard or draw with the mouse.
Mouse: it's inform device.
Output devices: These facilitate United States to point out the results of process.
Processing device: Helps to store, sort, organize and alter the inputs on a pc.
Scanner: It copies footage and pages and turns into pictures which will be saved on a pc.
Speakers: These area unit used for being attentive to recorded sound.
Storage devices: These area unit kind the memory of the pc.
Wed camera: it's used for taking live photos and videos.