Sunday, September 26, 2010

Exericise 1.1

1. Start Microsoft Visual C++ 6.0 as instructed by your instructor . Follow the instruction to create a new source program named " Hello.c".

2.Type in the following source code :

INcluding the necessaru library file . The printf() function needs Every C program must have main () function .
The printf () function prints the text on the screen.

#include

int main (void)
{
printf ("Hello World!\n");
return 0;
}

Statements/commands are written within the body of function , as indicated by a pair of braces , the { and } symbols.

3. Compile the program . IF there are errors , verify and correct them . Compile the program again , until there is no error .

4.Build and execute the program . FInish your task by closing the project workspace .


No comments:

Post a Comment