peperonity Mobile Community
Welcome, guest. You are not logged in.
Log in or join for free!
 
New to peperonity.com?
Your username allows you to login later. Please choose a name with 3-20 alphabetic characters or digits (no special characters).

IMPORTANT: Choose your name WISELY as you cannot change it later on! This is due to the fact that we will submit your pages to major search engines so that they can be found properly. 
Please enter your own and correct e-mail address and be sure to spell it correctly. The e-mail adress will not be shown to any other user. 
This password protects your account. To avoid typos it must be entered twice. Please enter 5-20 alphabetic characters or digits (no special characters). Choose a password that is not easy to guess! Never disclose your password to anyone. 
This password protects your account. To avoid typos it must be entered twice. Please enter 5-20 alphabetic characters or digits (no special characters). Choose a password that is not easy to guess! Never disclose your password to anyone. 
Stay logged in
Enter your username and password to log in. Forgot login details?

Username 
CAUTION: Do not disclose your password to anybody! Only enter it at the official login of peperonity.com. We will never ask for your password in a message! 
Login
Stay logged in

Share photos, videos & audio files
Create your own WAP site for free
Get a blog
Invite your friends and meet people from all over the world
All this from your mobile phone!
For free!
Get started!

You can easily invite all your friends to peperonity.com. When you log in or register with us, you can tell your friends about exciting content on peperonity.com! The messaging costs are on us.
Meet our team member Marzus and learn how to create your own mobile site!

¤)♦(C Programming-IV)♦(¤ - a.guide.to.computer



¤)♦(C Programming-IV)♦(¤
¤)♦(C Programming-IV)♦(¤
Keywords
C89 has 32 keywords (reserved words with special meaning):
auto double int struct
break else long switch
case enum register typedef
char extern return union
const float short unsigned
continue for signed void
default goto sizeof volatile
do if static while
C99 adds five more keywords:
_Bool inline
_Complex restrict
_Imaginary
[edit]Operators
Main article: Operators in C and C++
C supports a rich set of operators, which are symbols used within an expression to specify the manipulations to be performed while evaluating that expression. C has operators for:
arithmetic: +, -, *, /, %
assignment: =
augmented assignment: +=, -=, *=, /=, %=, &=, |=, ^=, <<=, >>=
bitwise logic: ~, &, |, ^
bitwise shifts: <<, >>
boolean logic: !, &&, ||
conditional evaluation: ? :
equality testing: ==, !=
calling functions: ( )
increment and decrement: ++ and --
member selection: ., ->
object size: sizeof
order relations: <, <=, >, >=
reference and dereference: &, *, [ ]
sequencing: ,
subexpression grouping: ( )
type conversion: (typename)
[edit]"Hello, world" example

The "hello, world" example, which appeared in the first edition of K&R, has become the model for an introductory program in most programming textbooks, regardless of programming language. The program prints "hello, world" to the standard output, which is usually a terminal or screen display.
The original version was:[13]
main()
{
printf("hello, world\n");
}
A standard-conforming "hello, world" program is:[nb 1]
#include <stdio.h>

int main(void)
{
printf("hello, world\n");
return 0;
}
The first line of the program contains a preprocessing directive, indicated by #include. This causes the preprocessor—the first tool to examine source code as it is compiled—to substitute the line with the entire text of the stdio.h standard header, which contains declarations for standard input and output functions such as printf. The angle brackets surrounding stdio.h indicate that stdio.h is located using a search strategy that prefers standard headers to other headers having the same name. Double quotes may also be used to include local or project-specific header files.
The next line indicates that a function named main is being defined. The main function serves a special purpose in C programs; the run-time environment calls the main function to begin program execution. The type specifier int indicates that the return value, the value that is returned to the invoker (in this case the run-time environment) as a result of evaluating the main function, is an integer. The keyword void as a parameter list indicates that the main function takes no arguments.[nb 2]
The opening curly brace indicates the beginning of the definition of the main function.
The next line calls (diverts execution to) a function named printf, which was declared in stdio.h and is supplied from a system library. In this call, the printf function is passed (provided with) a single argument, the address of the first character in the string literal "hello, world\n". The string literal is an unnamed array with elements of type char, set up automatically by the compiler with a final 0-valued character to mark the end of the array (printf needs to know this). The \n is an escape sequence that C translates to a newline character, which on output signifies the end of the current line. The return value of the printf function is of type int, but it is silently discarded since it is not used. (A more careful program might test the return value to determine whether or not the printf function succeeded.) The semicolon ; terminates the statement.
The return statement terminates the execution of the main function and causes it to return the integer value 0, which is interpreted by the run-time system as an exit code indicating successful execution.
The closing curly brace indicates the end of the code for the main function


This page:





Help/FAQ | Terms | Imprint
Home People Pictures Videos Sites Blogs Chat
Top