Tuesday, June 28, 2011

How and Why we use comments /* */



Text surrounded by (/* and */ or // ) is ignored by computer

Used to describe useful program information (description, author, date…
Example: 
/*
A Simple Program To Display Welcome !!!
*/
// A Simple Program To Display Welcome !!!

#include <stdio.h>

int main()
{

    printf("Welcome To Huzaifa's Blog\n");

    return 0 ;

}

Output:

Welcome To Huzaifa's Blog

No comments:

Post a Comment