Skip to main content

Posts

Showing posts from December, 2017

Introduction to computers

Computer system : A computer is a machine for manipulating data according to a list of instructions known as "program". It is an electronic machine that helps you to process data. It is used to solve problems related to almost every field such as education , home, medicine , science and technolgy, research, designing and publishing. A computer system has two main parts: 1. Hardware. 2. Software. Computer performs various operations to solve problems. To solve these problems, the various units of a computer system must perform and coordinate these operations. HARDWARE -- These are the physical uniys of a computer sustem. You can touch and feel them. These units constitute the hardware of a computer. You know that a computer has following unigs: 1. Input unit. 2. Processing unit. 3. Output unit. 4. Memory unit. INPUT UNIT-- Input unit enables you to enter data into a conputer. You alredy know about the most common input devices are: 1. scanner .   a)...

Computer virus

You might heared about virus causing health problems such as fever and other dangerous diseases. Viruses in common language are harmful germs that cause damage to anyone they attack. Have you heard about viruses attacking computer systems? These viruses are different from the harmful viruses that attack us. A VIRUS that attacks a computer is actually a computer program that is deliberately written by bad guys called "VIRUS PROGRAMMERS". A VIRUS PROGRAM is not always harmful ; or any program that causes harms to a computer system is not always a virus. A computer virus in real terms is a program that can make a copy of itself . It means that the program or virus can copy itself to different locations on the same computer or try to infect different computers automatically. HARMS CAUSED BY COMPUTER VIRUSES- Do you know that the majority of the virus programs are harmless? Their main purpose is to irritate the computer users instead of causing damages. These viru...

Tokens of C language

Tokens: Tokens are the smallest independent, individual units of C language which are of more beneficial if they remain together rather than individual. Types of tokens: 1. Identifiers. 2. Keywords. 3. Variables. 4. Constants. 5. Puntuator. 6. Operators. Now explanation of above these points: Identifiers-- any programs name or any variables name. RULES FOR ASSIGNING THE NAME OF IDENTIFIER : 1. NAME SHOULD NOT START WITH SPECIAL CHARACTERS. 2. NAME SHOULD START WITH AN ALPHABET. 3. IN BETWEEN NAME WE CAN USE SPECIAL CHARACTERS, symbols etc. 4. GAPS SHOULD NOT BI GIVEN BETWEEN THE NAME. 5. INSTEAD OF GAPS WE CAN USE UNDERSCORE. 6. DOTS ARE NOT ALLOWED IN THE NAME. 7. HE NAME IS DIVIDED INTO TWO TWO PARTS I.E. MAIN NAME AND EXTENSION NAME. THE MAIN NAME HAS A MAX. WORD LIMIT OF 8 AND EXTENSION NAME HAS A MAX. OF 3 CHARACTERS. 2. Keywords -- are the special words , reserved words or words carring special meaning in C language. For e.g. int , char, float, long, doub...

"C Basics"

C language was created by " Dannis Richie " in 1970 at " bell lab ". C Language is the base of many languages: 1.B language 2.COBOL language 3.Pascal language Since C language is a case sensitive language(where case sensitive means it differ in capital and small letters,that is it has different meaning if we write a word "Print"and has different meaning if we write it as "print".) That is it depends on : 1.Lower case and 2.Upper case. Now in different countries different languages are spoken so a language is composed of letters (for e.g. in English a,b,c etc.) Just like these languages C language is composed of letters,characters,numerics,special character's etc. Now I will give the description of these letters , special characters etc. 1.Characters : It include characters of English that is from A(capital) to z(small). So a total of 52 characters are used in C language. 2. Numerics : In C language a total of 10 numeri...