Here you can learn many programming Languages like C, C++, JAVA, Android..etc.
I post all programming language concept and also with practical and post programming language from Beginning to Advanced.
Contact Us
Get link
Facebook
X
Pinterest
Email
Other Apps
Contact Us
If you have any query regrading Site, Advertisement and any other issue, please feel free to contact at harshjani6373@gmail.com
character set, identifiers, keywords Character set: A character denotes any alphabet, digit or special symbol used to represent information. Valid alphabets, numbers and special symbols allowed in C are The alphabets, numbers and special symbols when properly combined form constants, variables and keywords. Identifiers: Identifiers are user defined word used to name of entities like variables, arrays, functions, structures etc. Rules for naming identifiers are: 1) name should only consists of alphabets (both upper and lower case), digits and underscore (_) sign. 2) first characters should be alphabet or underscore 3) name should not be a keyword 4) since C is a case sensitive, the upper case and lower case considered differently, for example code, Code, CODE etc. are different identifiers. 5) identifiers are generally given in some meaningful name such as value, net_salary, age, data etc. An identifier name may be long, s...
Constants And Variable Constants: Constant is a any value that cannot be changed during program execution. In C, any number, single character, or character string is known as a constant. A constant is an entity that doesn’t change whereas a variable is an entity that may change. For example, the number 50 represents a constant integer value. The character string "Programming in C is fun." is an example of a constant character string. C constants can be divided into two major categories: Primary Constants Secondary Constants These constants are further categorized as Numeric constant Character constant String constant Numeric constant: Numeric constant consists of digits. It required minimum size of 2 bytes and max 4 bytes. It may be positive or negative but by default sign is always positive. No comma or space is allowed within the numeric constant and it must have at least 1 digit. The allowable range for integer const...
Loops in C: Loop:-it is a block of statement that performs set of instructions. In loops Repeating particular portion of the program either a specified number of time or until a particular no of condition is being satisfied. There are three types of loops in c 1.While loop 2.do while loop 3.for loop While loop: Syntax:- while(condition) { Statement 1; Statement 2; } Or while(test condition) Statement; The test condition may be any expression .when we want to do something a fixed no of times but not known about the number of iteration, in a program then while loop is used. Here first condition is checked if, it is true body of the loop is executed else, If condition is false control will be come out of loop. Example:- /* wap to print 5 times welcome to C” */ #include <stdio.h> void main() { int p=1; While(p<=5) { printf(“Welcome ...
Comments
Post a Comment