Single and Multiple Line Comments

Comments 


एक comment आपके program में वो text होता है जिसे compiler ignore कर देता है। ये text बाकी statements की तरह execute नहीं होता है। Comments program में किसी statement को या फिर program को define करने के लिए use किये जाते है।

/* Your comment will be here */ 

C language में comments define करने के लिए forward slash (/) और asterisk (*) का प्रयोग किया जाता है।

#include <stdio.h>
int main() /* Main function starts from here*/
{
   printf(“Hello World!”);  /* This statement will print Hello World message */

   return 0;
}

ऊपर दिए गए program में comments के माध्यम से program और दूसरे statements के बारे में explanation दी गयी है।

Hello World!

Comments

Popular posts from this blog

What is C language? c programming, #programming

Introduction to C Data Types

Features of C Language