C Program to Find Total of Even Integers

C Comments

C programming Comments are way of inserting remarks and reminders into a program without affecting its content. C Comments do not have a fixed place in program: the compiler treats them as though they were white space or blank characters and they are consequently ignored.

Programs can contain any number of comments without losing speed. This is because comments are stripped out of a source program by the compiler when it converts the source program into machine code.

Comments are marked out or delimited by the following pairs of characters:

Example,

/* ...... comment ......*/

Comments are used by the programmer as a documentation aid. The aim of documentation is to explain clearly how the program works and how it is to be used. Sometimes C comment contains an informal argument demonstrating the correctness of the program.

C Comments with Examples

C Comments should be written simultaneously with program text. Although some programmers insert comments as a last step, there are two problems with this approach. The main reason because comment is skipped over as though it were a single space, it can be placed anywhere where spaces are valid characters, even in the middle of a statement, though this is not to be encouraged.

The following illustrates one of many styles that can be used to highlight comments:


*****************************
* If you visit Technosap *
* put comments in a box. *
*****************************

We should try to minimize the use of comments in program while trying to maximize the readability of the program. If there are too many comments, you obscure your code and it is the code which is the main message in a program.

Example,

main () /* The almost trivial program */
{
/* This little line has no effect */
/* This little line has none */
/* This little line went all the way down
to the next line */
/* And so on ... */
}

Example :  Hello World Program with Comments

The second is that ideally the C comments should serve as running commentary, indicating program structure and contributing to program clarity and correctness. They cannot do this if they are inserted after the coding is finished.

Online Training Tutorials

  • C Program to Find Total of Even IntegersC Tutorial – Learn C Programming Language TutorialLearn C programming is very easy if you follow our popular C tutorial which will take you from the beginning of C programming. This C tutorial is mainly designed for beginners and […]
  • JavaScript Comments with ExamplesJavaScript Comments with ExamplesJavascript supports two types of comments (JavaScript Comments). Double-slashes (//) tell javascript to ignore everything to the end of the line. You will see them used most often to […]
  • Maintain Number RangesMaintain Number Ranges for Controlling Documents in SAPMaintain Number Ranges for Controlling Document in SAP, IMG ⇒Controlling ⇒ General Controlling ⇒ Organization ⇒ Maintain Number Ranges for Controlling Document T-Code […]
  • Siebel Interview Questions and AnswersSiebel Interview Questions and AnswersSiebel is a CRM (Customer Relationship Management) application. It is mainly deployed by companies which have huge customer base and expect regular interaction with them. There are other […]
  • sap sd -Sales and DistributionSales and Distribution Accounting EntriesSales and Distribution INVOICE GENERATION Invoices will be generated at the Smelters and stock points. The accounting entries for the sale of goods despatched will flow from the Sales […]
  • ASAP Methodology ImplementationSAP Project PhaseASAP stands for Accelerated SAP, a methodology which SAP uses to implement SAP system in an organization. ASAP streamlines the implementation by providing templates, methods, tools and […]
  • Enterprise Content ManagementEnterprise Content Management an OverviewEnterprise resource planning (ERP) describes a broad set of activities that help manufacturers and other companies manage key areas of their businesses, including product planning and […]
  • sap landscapeWhat is SAP Landscape?Just try to understand the system sap landscape, Every company follows their own landscape as a standard you will have three servers like development, quality assurance and production […]