Home | Sign Up | Log In | RSSFriday, 2018-02-23, 3:56 PM


Site menu
Section categories
Education [150]
Videos [1]
Music [0]
Chat Box
learn c language learn c language branching and loop learn c language functions learn c language Pointer Basics how web page works Oracle Solaris 10 Oracle Solaris 10 How Web Pages Work Images How Web Pages Work Adding images&gr How Web Pages Work Introduction to How to Install WAMP How to Host Your Own Website for Fr How to Install the Apache Web Serve Atomic Structure The text provides 000 tons of conversations Introduction to How Radio Works Rad often over millions of miles citizens band radio Introduction to How the Radio Spect Can information travel faster than How F-15s Work by Tom Harris Browse How F/A-18s Work by Robert Valdes B How F/A-18s Work by Robert Valdes B Flying Video Game: In the Cockpit I How F/A-22 Raptors Work by Gary Wol 10 Unidentified Sounds That Scienti 10 Things You Didn't Know About Ein Is glass really a liquid? by Laurie How Radio Works by Marshall Brain B How Radio Works by Marshall Brain B 10 Most Terrifying Vehicle Manufact How a Top Fuel Dragster Works by Ch but can Siri meet our nee How Siri Works by Bernadette Johnso How the Tesla Turbine Works by Will Lecture 1: Inflationary Cosmology: Lecture 2: Inflationary Cosmology: Lecture 4: The Kinematics of the Ho Lecture 5: Cosmological Redshift an Lecture 6: The Dynamics of Homogene Lecture 7: The Dynamics of Homogene Lecture 8: The Dynamics of Homogene Lecture 9: The Dynamics of Homogene Lecture 10: Introduction to Non-Euc IBPS Clerical Cadre Exam Pattern De Institute of Banking Personnel Sele Educational Qualifications: A Degre INTERVIEW Candidates who have been official trailer for Mission Imposs How Relativity Connects Electric an in 1738 Kinetic Theory of Gases: A Brief Re Frames of Reference and Newton’s La attempts to measure the UVa Physics 12/1/07 “Moving Clocks Run Slow” pl More Relativity: The Train and the 12/1/07 The Formula If I walk from Adding Velocities: A Walk on the Tr 3/1/2008 The Story So Far: A Brief Mass and Energy Michael Fowler Energy and Momentum in Lorentz Tran How Relativity Connects Electric an Analyzing Waves on a String Michael by f even earlier than the bra Fermat's Principle of Least Time 9/ Hamilton's Principle and Noether's meaning they have Mechanical Similarity and the Viria Hamilton's Equations 9/10/15 A Dyna A New Way to Write the Action Integ Maupertuis came up with a kind of p Maupertuis' Principle: Minimum Acti Canonical Transformations Point Tra Introduction to Liouville's Theorem Adiabatic Invariants and Action-Ang Hyperbolas Michael Fowler Prelimina Mathematics for Orbits: Ellipses Keplerian Orbits Michael Fowler Pre Newton's equations for particle mot Dynamics of Motion in a Central Pot A Vectorial Approach: Hamilton's Eq Elastic Scattering Michael Fowler B Driven Oscillator Michael Fowler (c Dynamics of a One-Dimensional Cryst I usefor the spring constant (is a a mass on a spring Motion in a Rapidly Oscillating Fie Anharmonic Oscillators Michael Fowl in which the distance betw Motion of a Rigid Body: the Inertia Moments of Inertia: Examples Michae Euler's Angles Michael Fowler Intro or more precisely one our analysis of rotational motion h Euler's Equations Michael Fowler In Motion in a Non-inertial Frame of R Ball Rolling on Tilted Turntable Mi live cricket score roll the ball ba

Total online: 1
Guests: 1
Users: 0
Home » Entries archive
« 1 2 ... 28 29 30 31 »
Category: Education | Views: 434 | Added by: farrel | Date: 2013-10-22 | Comments (0)

In this drawing the three variables i, j and p have been declared, but none of the three has been initialized.

Pointer Basics

To understand pointers, it helps to compare them to normal variables.

A "normal variable" is a location in memory that can hold a value. For example, when you declare a variable i as an integer, four bytes of memory are set aside for it. In your program, you refer to that location in memory by the name i. At the machine level that location has a memory address. The four bytes at that address are known to you, the programmer, as i, and the four byt ... Read more »

Category: Education | Views: 7686 | Added by: farrel | Date: 2013-04-22 | Comments (0)


Most languages allow you to create functions of some sort. Functions let you chop up a long program into named sections so that the sections can be reused throughout the program. Functions accept parameters and return a result. C functions can accept an unlimited number of parameters. In general, C does not care in what order you put your functions in the program, so long as a the function name is known to the compiler before it is called.

We have already talked a little about functions. The rand function seen previously is about as simple as a function can get. It accepts no parameters and returns an integer result:

int rand()
/* from K&R
 - produces a random number between 0 and 32767.*/
 rand_seed = rand_seed * 1103515245 +12345;
 return (unsigned int)(rand_seed / 65536) % 32768;

The int rand() line declares the function rand to the rest of the program and specifies that rand will accept no parameters and return an integer result. This function has no local variables, but if it needed locals, they would go right below the opening { (C allows you to declare variables after any { -- they exist until the program reaches the matching } and then they disappear. A function's local variables therefore vanish as soon as the ma ... Read more »

Category: Education | Views: 1005 | Added by: farrel | Date: 2013-04-22 | Comments (0)

Branching and Looping

In C, both if statements and while loops rely on the idea of Boolean expressions. Here is a simple C program demonstrating an if statement:

#include int main() { int b; printf("Enter a value:"); scanf("%d", &b); if (b < 0) printf("The value is negativen"); return 0; }

This program accepts a number from the user. It then tests the number using an if statement to see if it is less than 0. If it is, the program prints a message. Otherwise, the program is silent. The (b < 0) portion of the program is the Boolean expression. C evaluates this expressio ... Read more »

Category: Education | Views: 1649 | Added by: farrel | Date: 2013-04-22 | Comments (0)

learn c language

The Basics of C Programming


Browse the article The Basics of C Programming

This animation shows the execution of a simple C program. By the end of this article you will understand how it works!

Category: Education | Views: 1716 | Added by: farrel | Date: 2013-04-22 | Comments (0)

Log In
Entries archive

Copyright eduCampus.tk © 2018
Powered by uCoz