Saturday, April 30, 2016

Some Program related to Decision in C Programming Language

Question 1: Write a program to input any number and check whether number is even or odd.

Decision and some related program in C Programming

Decision

If we want to execute one set of statements when the condition is satisfied and another set of statements when the condition is not satisfied, we use decision making statements. The different type of decision making
Statements are as follows:

Friday, April 29, 2016

Example of some programs

Question 1: Write a program to accept five numbers from keyboard and find their sum and average. 

Simple Input/Output Function in C

Input/Output Function in C

There exist several functions in C which can be used to perform input/output operations. These functions are collectively known as the standard input-output library and are predefined in special files called header files.

Keywords,Identifiers,Comment,Header Files and Format Specifiers


Keyword

Keywords can be defined as reserved words and they cannot be used as names for the variables or other user defined program eliminates. Keywords are just like valid words in any language. The meaning of the keywords has already been given to the compiler. Example: int, char, float, if, else, break, continue, for, while, do case, etc.

Wednesday, April 27, 2016

Data Types and Operators in C- Programming Language


Data type

Data types are the keywords that are used to define the type of value that a variable can store all 
c compilers support three fundamental data types. They are      

Tuesday, April 26, 2016

Introducton to C-Programming

What is C?

'C' is a programming language developed at Bells lab of USA in 1972. It was designed and written by Dennis Ritchie. 'C' becomes too much popular because it is reliable, simple, portable and easy to use. It is not ties to anyone operating system or machine. It is also called System Programming Language because it is useful for writing compiler and operating system. It has been used to write major programs in many different domains.

Popular Posts