Saturday, May 4, 2013

c programing

Hello friends today we will learn c coding.Today i will show you how to add comment at your program.You can add you own language.This is called comment.If it is one line comment then you can start with //.
if it is more then two line then you can start with /*..........*/.
See this code and try it

#include <stdio.h>
int main()
{
      // test program - comment 1
      printf("hello" );
     /* we have printed hello,
     now we shell print world.
    note that is multi-line comment */
    printf("world"); // printed world
    return 0;
}

 

No comments:

Post a Comment