if anyone happy with my blog so kindly
donate me something on this link plz:-
paypal.me/SDas560
The very first thing you need to do, before starting out in C, is to make sure that you have a compiler. What is a compiler, you ask? A compiler turns the program that you write into an executable that your computer can actually understand and run. If you're taking a course, you probably have one provided through your school. If you're starting out on your own, your best bet is to use Code::Blocks with MinGW. If you're on Linux, you can use gcc, and if you're on Mac OS X, you can use XCode. If you haven't yet done so, go ahead and get a compiler set up--you'll need it for the rest of the tutorial.
Intro to C
Every full C program begins inside a function called "main". A function is simply a collection of commands that do "something". The main function is always called when the program first executes. From main, we can call other functions, whether they be written by us or by others or use built-in language features. To access the standard functions that comes with your compiler, you need to include a header with the #include directive. What this does is effectively take everything in the header and paste it into your program. Let's look at a working program:#include <stdio.h>
int main()
{
printf( "I am alive! Beware.\n" );
getchar();
return 0;
}
Download Cprogramming PDF link:-
https://drive.google.com/open?id=0B_6kK5kFli0vcmx4aDN1dk9lNGM
No comments:
Post a Comment