Skip to main content

Important terms in C

 Tokens 
 In C programming language, tokens are the basic building blocks of a program. Tokens can be classified into several categories, and one important category is identifiers.
 Identifiers: -Identifiers are names used to identify variables, functions, types, labels, etc. 
 Rules for identifiers in C: 
  •  Must start with a letter (a-z or A-Z) or underscore (_). 
  •  Can be followed by letters, digits (0-9), or underscores. 
  •  Cannot be a keyword. 
  •  Case-sensitive (e.g., "my Variable" and "my variable" are different identifiers). 
 Keywords: -Keywords are reserved words with predefined meanings in the C language.
 Total 32 Keywords in C. 
  Examples: if, else, for, while, int, char, etc.




































     









 
Uploading: 57521 of 57521 bytes uploaded.
                                                     






                                           List of 32 C keywords
 Constants: -Constants represent fixed values that cannot be modified during the execution of a program.
 Examples: 





integer constants (e.g., 123, 0xFF), 

floating-point constants (e.g., 3.14, 1.0e-5), 

character constants (e.g., 'A', '\n'), 

string constants (e.g., "Hello", "C programming"), etc. 


 Operators and Punctuators:
  •  Operators perform various operations on operands. 
  •   Punctuators are symbols with special meanings in the C language. 
  • Examples: +, -, *, /, =, ==, ++, --, ,, ;, (, ), {, }, etc. 
 String literals: -String literals represent sequences of characters enclosed in double quotes. Example: "Hello, World!".

Comments

Popular posts from this blog

BASIC STRUCTURE OF A COMPUTER SYSTEM

Computer Function A computer performs action and accomplishes its task in three basic stages namely:- INPUT – Input is the data that is fed into the computer by the user. PROCESS – Processing refers to the series of action by which the computer converts raw data into information. OUTPUT – Output is the result which is termed as information. Input Unit Data and instructions enter a computer through an input unit in a form that depends upon the input device used. Ex- Keyboard, Mouse, Joystick, Scanner etc. CENTRAL PROCESSING UNIT (C.P.U) CPU is also known as the brain of the “Brain of Computer”. As it appears as a hardware component, but it is also a functional component of a computer system. Functional Elements of a CPU        1.        Arithmetic Logic Unit(ALU)        2.        Control Unit(C.U)        3.    ...

DEVICES USED IN NETWORK

  1. MODEM: It stands for Modulator- Demodulator. A   modem is a peripheral device which modulates ( convert   digital signals to analog signals) and demodulates( convert   analog signals into digital signals) at the local workstation.   The sending and receiving ends of the communication must   have a modem. Now a days mobile phones have inbuilt   modem devices that help to browse internet.      2. Switch: A network switch is a small hardware device that is used to amplify data signals & create smaller network segment or several subnets of bigger network. It is used to prevent overloading of data in the traffic of a network. It is also responsible for forwarding and transforming data packets between the sub networks.    3. HUB:   A hub is a hardware device which provides common connection point to connect several devices together in a network. It contains multiple ports on which wo...

Application OF Computer

Communication : - In the past, people used to communication through letters, telephones etc. The advent of computers has made it possible to share or exchange information in real time (instant). Information can be textual, graphics or visual from any corner of the world in different ways. Like – Email, Online chatting, Video conferencing, FTP (File Transfer Protocol), Telnet, Social Networking. News & Broadcasting : The delivery and reception of news has changed dramatically with the advent of computers. Earlier, Journalists used snail mail, reel-to-reel recorders, dark-room processing for photos and typewriters for composing contents. But now computers have facilitated in Instant Broadcast, Online Newspapers, Online News Channels, etc. Social Networking: Before the advent of computer, people used to interact with friends and relatives in closed groups and meet them during family functions, religious ceremonies and gatherings at local temples, gurudwaras, mosques or church...