C Programming

From Wikibooks, open books for an open world
(Redirected from C programming)
Jump to: navigation, search
  1. include<stdio.h>
  2. include<stdlib.h>

//declaring the initial variables in our code int age,ten years,before; int main()

             {
 printf("How old are you now?\n");
 scanf("%d",&age);
 

//let's get the years calculated!

                  tenYears=age+10;;
                   before=age-10;
                   printf("10 Years ago you were  %d old and in 10 Years' time you will be
         %d\n",before,tenYears);
                  return 0;
                  }

Table of contents[edit]

Introduction[edit]

50% developed  as of Mar 10, 2009 Why Learn C?
50% developed  as of Mar 10, 2009 History
50% developed  as of Mar 10, 2009 What you need before you can learn
50% developed  as of Mar 10, 2009 Using a Compiler
50% developed  as of Mar 10, 2009 A Taste of C

Beginning C[edit]

25% developed  as of Sept 04, 2012 Intro Exercise
75% developed  as of June 17, 2012 Preliminaries
25% developed  as of Mar 10, 2009 Basics of Compilation
100% developed  as of Jul 15, 2010 Programming Structure and Style
75% developed  as of Mar 10, 2009 Variables
75% developed  as of Mar 10, 2009 Simple Input and Output
50% developed  as of Oct 29, 2012 Simple Math in C
75% developed  as of Mar 10, 2009 Further Math in C
75% developed  as of Mar 10, 2009 Program Flow
50% developed  as of Mar 10, 2009 Procedures and Functions
50% developed  as of Mar 10, 2009 Error Handling
50% developed  as of Mar 10, 2009 The Preprocessor
25% developed  as of Mar 10, 2009 Libraries
50% developed  as of Mar 10, 2009 Standard libraries
75% developed  as of Mar 10, 2009 File I/O
75% developed  as of Mar 10, 2009 Exercises

In-depth C Ideas[edit]

75% developed  as of Mar 10, 2009 Arrays & Strings
50% developed  as of Mar 10, 2009 Pointers and relationship to arrays
50% developed  as of Mar 10, 2009 Memory Management
75% developed  as of Mar 10, 2009 String Manipulation
50% developed  as of Mar 10, 2009 C complex types
50% developed  as of Mar 10, 2009 Sockets and Networking (UNIX)
50% developed  as of Mar 10, 2009 Common Practices
25% developed  as of Mar 10, 2009 Serialization and X-Macros
25% developed  as of Feb 1, 2011 Coroutines

C and Beyond[edit]

50% developed  as of Mar 10, 2009 Particularities of C
25% developed  as of Mar 10, 2009 Language Overloading and Extensions
25% developed  as of Mar 10, 2009 Combining Languages
75% developed  as of Oct 11, 2011 Object Oriented Programming: The GObject System
0% developed  as of Mar 10, 2009 Commented Source Code Library

Computer Science[edit]

The following are C adaptations of articles from the Computer programming book.

0% developed  as of Mar 10, 2009 Statements

C Reference Tables[edit]

This section has some tables and lists of C entities.

75% developed  as of Mar 10, 2009 C References - The Whole List
0% developed  as of Oct 5, 2011 C Reference
0% developed  as of Oct 5, 2011 POSIX Reference
0% developed  as of Oct 5, 2011 Platform Reference
0% developed  as of Mar 10, 2009 C Compilers Reference List

Appendices[edit]

Related Wikibooks[edit]