How to Create Basic Structure of a C Program (HINDI)

I  am going to share a Basic Structure of a C Program. In which you can easily understand that how  create a basic program in 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:

Example:-

#include <stdio.h>
int main()
{
    printf( "I am alive!  Beware.\n" );
    getchar();
    return 0;
}






Comments

Popular posts from this blog

Handle and show SQL Exception show in popup message box in SAP ABAP

How to use GUID in asp.net C# for unique ID?

How to access an internal table of one program in another program