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

ARITHMETIC OPERATIONS ON BINARY NUMBER

Binary arithmetic is simpler to learn because binary number system deals with only two digits - 0 and 1. Binary number perform all arithmetic operation such as Addition, Substraction, Multiplication and compliment as in decimal number system. Binary Addition The addition table for binary arithmetic consist of only the following four entries: 0+0=0 0+1=1 1+0=1 1+1=0 , plus a carry of 1 to the next column.     1011        + 1100    10111     1100    + 1100     11000 Binary Substraction There are three ways to do substraction between binary numbers:- 1. Simple Substraction 2. Substraction using 1's Complement 3. Substraction using 2's Complement Simple Substraction: The complete table of binary substraction is as follows: 0-0=0 0-1=1, borrow 1 from next column 1-0=1 1-1=0    1101 - 0101   1000     1001   - 0111    0...

Media Of Communication Part 2

Unguided Media Unguided media transport electromagnetic wave without using a physical connection. This type of communication referred as wireless communication. We can divided wireless transmission in :-   1. Radio Wave:- Electromagnetic   waves ranging in frequencies between 3KHz and 1GHz are normally called radio wave.   On radio wave connectivity used communication used Bluetooth, Wi-Fi, etc.     Bluetooth :- It is a wireless network connectivity that enables to connect or transfer data between devices over a short range the physical range of connection up to 100 meter. Ex- Mobile phone, barcode scanning, portable speaker, wireless keyboard, mouse etc.      Wi-Fi (Wireless Fidelity):- Wi-Fi is a network of wireless connection. Wi-Fi network establish by radio frequency like Bluetooth, but has more power, resulting a strong connection.    ·   Wi-Fi is also called wireless Ethernet. It has connectivity range up...

WEB SERVICES

INFORMATION RETRIEVAL   It is the process of accessing information that is stored on the Internet. The process of exploring and retrieving the information from the Internet is known as net surfing. When your PC is connected to the Internet, you are ready to retrieve information from it. You need a particular software called Web browser to retrieve information.   When you type the URL of a particular Website in the address bar of the Web browser and press Enter key, the browser retrieves the Web page from the Internet and stores its content. SEARCH ENGINE   It is a Website that provides the required data on specific topics. It turn the Web into a powerful tool for finding information on any topic. Search engine allows users to enter keywords (queries or terms) related to particular topics and retrieve information about the Websites containing these keywords. It is a program designed to search for information on the Web through a database of Web pages queries or keywords....