Posts

Showing posts from November, 2019

Data Types in C (types and examples)

Image
Hello Guys, Let's see about Data Types with example  Data Types:- There are various types of data. For example, data 10 and 100.5 are data of different types. The data 10 is an integer number (i.e whole number) while 100.5 is a fractional number. There are other varieties of data types supported by C, each of which may be represented differently within computer's memory. The variety of data types available allow the programmer to select the type needed by the application. (ANSI) C supports three  classes of data types:- 1) . Primary (fundamental) data types 2) . User-defined data types 3) . Derived data types  1). Primary Data Types   The primary data types and derived data types are discussed in this section. The user-defined data types such as arrays, functions, structures and pointers are discussed in separate chapters.  Primary data types are categorized into five types:- a) Integer type ( int ) b) Floating point typ...

Character Set, Keywords and Identifiers in C (explain with Examples)

When, we are starting to learn an English language. First of all, we must need to know basic words in English language. Like, Alphabets (A to Z) and other words. Thus, we need basic words and other letter to learn C programming language  So guys, Let's see below about basic words of C program. Character Set:- The set of characters that are used to form words, numbers and expression in C is called C character set. The combination of these characters forms words, numbers and expressions in C.  The characters in C are grouped into the following four categories. 1) Letters or Alphabets  2) Digits 3) Special Characters 4) White Space 1)  Letter or Alphabets  i.) Uppercase alphabets = (A....Z) ii.)  Lowercase alphabets = (a....z) 2)  Digits  All decimal digits = 0 1 2 3 4 5 6 7 8 9 3)  Special Characters Comma = ,                           ...

How to run program and the basic C program.

Image
Hello! Guys  We are use  Dev-C++   to code c program , which it's easy and useful. Let's see step by step:-  1. Download and install < Dev-C++ >:- 2. Open < Dev-C++ >:- 3. Click < file, New and Project >:- 4. Click < empty project, C project, tick and Ok >:- 5. Typing   Name.C and click on save :- 5. Working Place:- 6. We are coding   ( Hello World ):- 7. Click  < execute, compile &run >:- 8. Output ( Hello world ):- 9. Sum of two number ( c=a+b ):- 10. Simple interest ( P*T*R ) /100 :- Thank you for all.....

Basic Structure of C Program. (Explain with Example)

Image
Everything you need to know about basic structure of a C program . OK Guys, Let's see.  Basic structure of C program :- The basic structure of C program implies the composition of a program. It's help understand to coding program.  Documentation  Section:- This section contains a set of comment lines giving the name of program, the author, algorithms, methods used and other details. The compiler  won't compile this and hence this portion would not be displayed on the output screen. This section will be useful in future for users and developing  teams.  comments are be giving in C programming in two different ways.  1. Single Line Comment = // 2 . Multi Line Comment = /*...*/ For Example // ellipse.c /* This code once compiled and executed , calculates the area of an ellipse after reading major and minor axis */ /*Program coded by Tiloc Thapa*/      /* = We are use this symbo...

Learn C Programming Languages ( Definitions and Advantages).

Image
H ello, Guys so today we are learn about C Programming languages . OK  Let's start.... What is C programming language? C language is high-level and general-purpose programming language, which is very important to develop software or many programs. First, we need to  learn C language than other languages because there are basic words in C language. When we are perfect in C language. Other languages will be easy to learn  and understand. C was developed at bell lab by DENNIS RITCHIE for the Unix operating system. C was standardized by ANSI(American National Standard Institute)  in 1980. C has also greatly influenced many other popular languages, especially C++, which was originally designed as an extension to C.    Advantages of C programming language? - C is robust language and it's well suited for writing both system and application packages. - Programs written in C are efficient and fast due to it's varieties of data types and po...

Learn Basic Programming Languages.

Image
" Welcome to you in this tutorials of C programming languages. " OK, so first, Let's see what's so special about programming language, and then we are started about C programming language. What is a programming language?  Computer program is a set of instructions that, when executed caused the computer to behave in a predetermined manner. Without program,computers are useless and nothing. Computer can do anything, but only with the help of appropriate program(s) installed on it. Computer generally don't understand natural language like English or Nepali language unless otherwise it in instructed to instruct a computer to perform a certain job. We need languages which can be understood by the computer. The language which are used to instruct the computer to do certain jobs are called computer programming language. That is used for develop various kind of software, application etc.  Types of programming languages. <i> Low-l...