Structure in C Language | Basic structure in c example

Structure in C LanguageC Progarmming, me example dekhne ke liye aap ye post ko read kre. structure c program starting ka basic c example, hai . basic c program, ko understand karne ke liye example dekhe |

Structure in C Language

C Programming me structure ko understand karne ke liye aapko is post ke example ko dekh na padega and c language ka structure easy hai usse ham ek ek karke samnjte karte hai |

Basic structure in c

Structure in C Language | Basic structure in c example
Structure in c language

C programming ka basic structure is image me dekh sakte hai agar aapko samanj nhi aa rha hai. to me aapko ek ek karke samnjta hu |

basic c example

C language structure me six part hote hai jese ki aap uppar di gyi image me dekh sakte hai . Lekin ham aapko ek ek karke batate hai

  1. Documentation Section
  2. Link Section
  3. Definition Section
  4. Global Declaration Section
  5. main
  6. subprogram section

How To Create Calculator In C#

Documentation Section

Documentation Section C programming me comments ke liye use hota hai |

example

// sample program created by Danish 

Link Section

Link Section C programming me jab ham header file add karte hai usse hi link section kahte hai |

Example

#include<stdio.h>      // link section
#include<conio.h>     // link section

structure c program

Definition Section

Definition Section c language me jab ham void function (); ko program add karte hai usse hi definition section kahte hai |

Example

#include<stdio.h>
#include<conio.h>    // link section

void main()               // definition section

Global Declaration Section

Global Declaration Section Jab ham use karte hai jab hme kisi variable ki value ko constant rakhna ho and usse ham main program se uppar use karte hai |

Example

#include<stdio.h>
#include<conio.h>

int a=20;    // global variable & declare constant value
main()

basic c example

Main ()

Main () Program se c language me pta chal hi program kaha se start hai . jese ki jab ham Main write karte hai to c programming me compiler ko pta chal jata hai ki program main se start karna hai & iske two part hote hai pahla declaration part & second executable part |

Example

void main()
{
clrscr();
printf("This is the main program");
}

Subprogram Section

Sub program me user define function ko use kiya jata hai. user define function means jo function user define karta hai |

Example

void main()
{
printf("Hello World");
}

Aap Dekh Sakte Hai Ki Hamne Structure in C language ka aaj structure ko acchi tarah se understand kiya hai lekin agar aapko abhi bhi dikkat hai to aap upper diye gye image ko dekh sakte hai and understand ho sakte hai |

Structure in C Language

Dosto mujhe ummed hai ki aap Structure in C Language ko acchi tarah se samanj gye honge agar aap ko ye post acchi lage to mere is website ko jarur follow kre or ha agar aap video bhi dekhna chahte hai to aap mere channel ko bhi subscribe kar sakte hai. channel ka link aapko home page par mil jayega |

Leave a Reply

Your e-mail address will not be published. Required fields are marked *