Tuesday, 30 August 2016

Data types in C programming

Data  types  in  C  refer  to  an  extensive  system  used  for  declaring  variables  or functions of different types. The type of a variable determines how much space it occupies in storage and how the bit pattern stored is interpreted.

Basic Types: 
They  are  arithmetic  types  and  are  further  classified  into:  (a)  integer types and (b) floating-point types.

 Enumerated types: 
They are again arithmetic  types and  they are used  to define variables that  can  only  assign  certain  discrete  integer  values  throughout  the program.

 The type void: The type specifier void indicates that no value is available.

Derived types: They include (a) Pointer types, (b) Array types, (c) Structure types, (d)
Union types, and (e) Function types.


Sunday, 28 August 2016

Loops and Conditions Statements in C programming

An if statement consists of a Boolean expression followed by one or more statements. 
An if statement can be followed by an optional else statement, which executes when the Boolean expression is false. An if statement can be followed by an optional else if...else statement, which is very useful to test various conditions using single if...else if statement.

It is always legal in C programming to nest if-else statements, which means you can use one if or else if statement inside another if or else if statement(s).
A switch statement allows a variable to be tested for equality against a list of values. Each value is called a case, and the variable being switched on is checked for each switch case.


A while loop in C programming repeatedly executes a target statement as long as a given condition is true.
Unlike for and while loops, which test the loop condition at the top of the loop, the do...while loop in C programming checks its condition at the bottom of the loop. A do...while loop is similar to a while loop, except the fact that it is guaranteed to execute at least one time.



Tuesday, 23 August 2016

Basic And Main Function Concept in C Program



A C program basically consists of the following parts:
Preprocessor Commands
Functions
Variables
Statements & Expressions 
Comments
‪#‎include‬ <stdio.h>
int main()
{
/* my first program in C */
printf("Hello, World! \n");
return 0;
}



The first line of the program #include <stdio.h> is a preprocessor command, which tells a C compiler to include stdio.h file before going to actual compilation.The next line int main() is the main function where the program execution begins.
The next line /*...*/ will be ignored by the compiler and it has been put to add additional comments in the program. So such lines are called comments in the program.
The next line printf(...) is another function available in C which causes the message "Hello, World!" to be displayed on the screen.The next line return 0; terminates the main() function and returns the
value 0.


Monday, 22 August 2016

Introducation C programming



C is a general-purpose, high-level language that was originally developed by Dennis M. Ritchie to develop the UNIX operating system at Bell Labs. C was originally first implemented on the DEC PDP-11 computer in 1972. In 1978, Brian Kernighan and Dennis Ritchie produced the first publicly available description of C, now known as the K&R standard. The UNIX operating system, the C compiler, and essentially all UNIX application programs have been written in C. C has now become a widely used professional language for various reasons:
Easy to learn
Structured language
It produces efficient programs
It can handle low-level activities
It can be compiled on a variety of computer platforms

Quran E Majeed in mp3 audio with Urdu Translation


1 al-Fatihah al-faatiHah The Opening

2 al-Baqarah al-baqarah The Cow 
3 Al-Imran aali-`imraan The Family Of Imran
4 an-Nisa' an-nisaa' Women
5 al-Ma'idah al-maa'idah The Food
6 al-An`am al-an`aam The Cattle
7 al-A`raf al-a`raaf The Elevated Places
8 al-Anfal al-anfaal The Spoils Of War
9 at-Taubah at-tawbah Repentance
10 Yunus yoonus Jonah
11 Hud hood Hud
12 Yusuf yoosuf Joseph
13 ar-Ra`d ar-Ra`d The Thunder
14 Ibrahim ibraheem Abraham
15 al-Hijr al-Hijr The Rock
16 an-Nahl an-naHl The Bee
17 Al-Isra al-Isra' The Night Journey
18 al-Kahf al-kahf The Cave
19 Maryam maryam Mary
20 Ta Ha Taa haa Ta Ha
21 al-Anbiya' al-anbiyaa' The Prophets
22 al-Hajj al-Hajj The Pilgrimage
23 al-Mu'minun al-mu'minoon The Believers
24 an-Nur an-noor The Light
25 al-Furqan al-furqaan The Criterion
26 ash-Shu`ara' ash-shu`araa' The Poets
27 an-Naml an-naml The Ant
28 al-Qasas al-qasas The Narrative
29 al-`Ankabut al-`ankaboot The Spider
30 ar-Rum ar-room The Romans
31 Luqman luqmaan Lukman
32 as-Sajdah as-sajdah The Adoration
33 al-Ahzab al-aHzab The Allies
34 Saba' as-Saba' Sheba
35 Fatir faaTir The Creator
36 Ya Sin yaa seen Ya Sin
37 as-Saffat aS-Saaffaat The Rangers
38 Sad Saad Sad
39 az-Zumar az-zumar The Companies
40 Ghafir Ghafir The Forgiving One
41 Fussilat Fussilat Revelations Well Expounded
42 ash-Shura ash-shooraa The Counsel
43 az-Zukhruf azl-zukhruf The Embellishment
44 ad-Dukhan ad-dukhaan The Evident Smoke
45 al-Jathiyah al-jaathiyah The Kneeling
46 al-Ahqaf al-aHqaaf The Sandhills
47 Muhammad muHammad Muhammad
48 al-Fath al-fatH The Victory
49 al-Hujurat al-Hujuraat The Chambers
50 Qaf qaaf Qaf
51 ad-Dhariyat ad-dhaariyaat The Scatterers
52 at-Tur aT-Toor The Mountain
53 an-Najm an-najm The Star
54 al-Qamar al-qamar The Moon
55 ar-Rahman ar-raHmaan The Merciful
56 al-Waqi`ah al-waaqi`ah That Which is Coming
57 al-Hadid al-Hadeed The Iron
58 al-Mujadilah al-mujaadilah She Who Pleaded
59 al-Hashr al-Hashr The Exile
60 al-Mumtahanah al-mumtaHanah She Who is Tested
61 as-Saff as-saff The Ranks
62 al-Jumu`ah al-jumu`ah The Day of Congregation
63 al-Munafiqun al-munafiqoon The Hypocrites
64 at-Taghabun at-taghaabun The Cheating
65 at-Talaq, aT-Talaaq The Divorce
66 at-Tahrim at-taHreem The Prohibition
67 al-Mulk al-mulk The Kingdom
68 al-Qalam al-qalam The Pen
69 al-Haqqah al-Haaqqah The Inevitable
70 al-Ma`arij al-ma`aarij The Ladders
71 Nuh nooH Noah
72 al-Jinn al-jinn The Jinn
73 al-Muzammil al-muzammil The Mantled One
74 al-Mudathir al-muddaththir The Clothed One
75 al-Qiyamah al-qiyaamah The Resurrection
76 al-Insane al-insane The Man
77 al-Mursalat al-mursalaat The Emissaries
78 an-Naba' an-naba' The Tidings
79 an-Nazi`at an-naazi`aat Those Who Pull Out
80 `Abasa `abasa He Frowned
81 at-Takwir at-takweer The Cessation
82 al-Infitar al-infiTaar The Cleaving Asunder
83 Al-Mutaffifeen Al-Mutaffifeen The Defrauders
84 al-Inshiqaq al-inshiqaaq The Rending
85 al-Buruj al-burooj The Constellations
86 at-Tariq aT-Taariq The Night-Comer
87 al-A`la al-A`laa The Most High
88 al-Ghashiya al-ghaashiyah The Overwhelming Calamity
89 al-Fajr al-fajr The Dawn
90 al-Balad al-balad The City
91 ash-Shams ash-shams The Sun
92 al-Layl al-lail The Night
93 ad-Duha aD-DuHaa The Early Hours
94 ash-Sharh ash-Sharh The Expansion
95 at-Tin aT-Teen The Fig
96 al-`Alaq al-`alaq The Clot
97 al-qadr al-qadr The Majesty
98 al-Bayyinah al-bayyinah The Proof
99 Az-Zalzala Az-Zalzala The Shaking
100 al-`Adiyat al-`aadiyaat The Assaulters
101 al-Qari`ah al-qaari`ah The Terrible Calamity
102 at-Takathur at-takaathur Worldly Gain
103 al-`Asr al-`asr Time
104 al-Humazah al-humazah The Slanderer
105 al-Fil al-feel The Elephant
106 al-Quraish al-quraish The Quraish
107 al-Ma`un al-maa`oon The Daily Necessaries
108 al-Kauthar al-kauthar Abundance
109 al-Kafirun al-kaafiroon The Unbelievers
110 an-Nasr an-naSr The Help
111 Al-Masad Al-Masad The Palm Fibre
112 al-Ikhlas al-ikhlaaS The Unity
113 al-Falaq al-falaq The Daybreak
114 an-Nas an-naas The Men