Introduction to the C Programming Language
#1

PRESENTED BY:
Fred Kuhns

[attachment=11543]
Introduction
• The C programming language was designed by Dennis Ritchie at Bell Laboratories in the early 1970s
• Influenced by
– ALGOL 60 (1960),
– CPL (Cambridge, 1963),
– BCPL (Martin Richard, 1967),
– B (Ken Thompson, 1970)
• Traditionally used for systems programming, though this may be changing in favor of C++
• Traditional C:
– The C Programming Language, by Brian Kernighan and Dennis Ritchie, 2nd Edition, Prentice Hall
– Referred to as K&R
Standard C
• Standardized in 1989 by ANSI (American National Standards Institute) known as ANSI C
• International standard (ISO) in 1990 which was adopted by ANSI and is known as C89
• As part of the normal evolution process the standard was updated in 1995 (C95) and 1999 (C99)
• C++ and C
– C++ extends C to include support for Object Oriented Programming and other features that facilitate large software development projects
– C is not strictly a subset of C++, but it is possible to write “Clean C” that conforms to both the C++ and C standards.
Elements of a C Program
• A C development environment includes
– System libraries and headers: a set of standard libraries and their header files. For example see /usr/include and glibc.
– Application Source: application source and header files
– Compiler: converts source to object code for a specific platform
– Linker: resolves external references and produces the executable module
• User program structure
– there must be one main function where execution begins when the program is run. This function is called main
• int main (void) { ... },
• int main (int argc, char *argv[]) { ... }
• UNIX Systems have a 3rd way to define main(), though it is not POSIX.1 compliant
int main (int argc, char *argv[], char *envp[])
– additional local and external functions and variables
A Simple C Program
• Create example file: try.c
• Compile using gcc:
gcc –o try try.c
• The standard C library libc is included automatically
• Execute program
./try
• Note, I always specify an absolute path
• Normal termination:
void exit(int status);
– calls functions registered with atexit()
– flush output streams
– close all open streams
– return status value and control to host environment
Source and Header files
• Just as in C++, place related code within the same module (i.e. file).
• Header files (*.h) export interface definitions
– function prototypes, data types, macros, inline functions and other common declarations
• Do not place source code (i.e. definitions) in the header file with a few exceptions.
– inline’d code
– class definitions
– const definitions
• C preprocessor (cpp) is used to insert common definitions into source files
• There are other cool things you can do with the preprocessor

Reply
#2



to get information about the topic d programing lang full report ,ppt and related topic refer the page link bellow

http://studentbank.in/report-d-programmi...age--15408

http://studentbank.in/report-d-programming-language

http://studentbank.in/report-categorizat...-languages

http://studentbank.in/report-introductio...g-language

http://studentbank.in/report-go-programm...ort?page=2

http://studentbank.in/report-c-language-programming
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Tagged Pages: seminar topics on c language, seminar on c language, c programs seminar, c program topics for seminars, seminar on c programming, seminar on topic related to c programming, c programming language seminar,
Popular Searches: programming microcontrollers in c language, d programming language alexandrescu, d programming language download, ppts of quick introduction to c programming, introduction of java language project report, dennis rader childhood, seminar topic on the cobol programming language,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  INTRODUCTION astru 0 916 27-09-2014, 05:50 PM
Last Post: astru
  INTRODUCTION OF INTRANET CHATTING computer girl 1 3,132 24-02-2014, 01:48 AM
Last Post: Guest
  Dynamic programming language seminar projects crazy 2 3,188 03-01-2013, 12:31 PM
Last Post: seminar details
  A Quick Introduction to Voice over Internet Protocol (VoIP) computer girl 0 1,339 09-06-2012, 05:50 PM
Last Post: computer girl
  SEMINAR ON MICROENGINE PROGRAMMING IN NWP computer girl 0 998 09-06-2012, 03:09 PM
Last Post: computer girl
  UAV DevBoard: Getting Started with PIC Programming computer girl 0 1,016 09-06-2012, 11:35 AM
Last Post: computer girl
  INTRODUCTION OF IP SPOOFING computer girl 0 1,033 08-06-2012, 12:01 PM
Last Post: computer girl
  Introduction of Mobile Agents computer girl 0 846 05-06-2012, 12:48 PM
Last Post: computer girl
Music D Programming Language Computer Science Clay 2 2,565 14-03-2012, 02:35 PM
Last Post: seminar paper
Thumbs Down Extreme Programming (XP) computer science crazy 2 2,076 14-03-2012, 11:57 AM
Last Post: seminar paper

Forum Jump: