A Quick Introduction to C Programming
#1

A Quick Introduction to C Programming

[attachment=18329]

Writing and Running Programs

1. Write text of program (source code) using an editor such as emacs, save as file e.g. my_program.c


2. Run the compiler to convert program from source to an “executable” or “binary”:
$ gcc –Wall –g my_program.c –o my_program

3-N. Compiler gives errors and warnings; edit source file, fix it, and re-compile


A Quick Digression About the Compiler

In Preprocessing, source code is “expanded” into a larger form that is simpler for the compiler to understand. Any line that starts with ‘#’ is a line that is interpreted by the Preprocessor.

Include files are “pasted in” (#include)
Macros are “expanded” (#define)
Comments are stripped out ( /* */ , // )
Continued lines are joined ( \ )


The number of a slot is its Address.
One byte Value can be stored in each slot


What is “Memory”?

A Type names a logical meaning to a span of memory. Some simple types are:

a single character (1 slot)
an array of 10 characters
signed 4 byte integer
4 byte floating point
signed 8 byte integer





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
Popular Searches: quick safety, download quick time, free quick potty, introduction to java programming, quick reference for the, quick studentenmenu, quick review q,

[-]
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 to Synthetic Aperture Radar seminar addict 1 1,356 10-12-2012, 03:07 PM
Last Post: seminar details
  Microprocessor Microcontroller and Programming Basics seminar addict 1 2,247 03-12-2012, 12:57 PM
Last Post: seminar details
  INTRODUCTION TO DATABASE MANAGEMENT SYSTEMS seminar paper 1 2,238 13-11-2012, 12:18 PM
Last Post: seminar details
  Introduction to data structures seminar details 1 3,354 29-10-2012, 12:42 PM
Last Post: seminar details
  Introduction to VLSI Design ppt seminar paper 1 2,193 02-10-2012, 01:08 PM
Last Post: seminar details
  An Introduction to the Analytical Writing Section of the GRE® revised General Test computer girl 0 484 11-06-2012, 03:06 PM
Last Post: computer girl
  An Introduction to the Linux Command Shell For Beginners project uploader 0 919 09-06-2012, 04:29 PM
Last Post: project uploader
  NC and CNC machines and Control Programming ppt seminar details 0 2,118 08-06-2012, 12:53 PM
Last Post: seminar details
  Introduction to HTML project uploader 0 737 05-06-2012, 05:48 PM
Last Post: project uploader
  Visual Basic Programming seminar details 0 944 05-06-2012, 01:52 PM
Last Post: seminar details

Forum Jump: