[C] Console Output

printf()

#include <stdio.h>

int main(void)
{

    printf("Hello World!");
    return 0;
}

output: Hello Word!

Debugging

The process of making the program into an error-free sentence.

Comment

  • /* */
  • //
/*
It is a block annotation space and is not affected by program execution.
*/
#include <stdio.h>

int main(void)
{
    printf("Hello World!"); // One line comment.

    return 0;
}

Escape Sequence

Escape|function —|— \n|New Line \r|Carriage Return \b|Back Space \t|Tab \a|Alarm

#include <stdio.h>
int main(void)
{
    printf("Hello World!");
    printf("Hello World!\n");
    printf("\n");
    return 0;
}

Tags:

Categories:

Updated: