Escape Sequence \' for single quote - C Language Basics

C examples for Language Basics:printf

Introduction

To insert a single quote into your outputted text, use the escape sequence \'.

Demo Code

#include <stdio.h>

int main()//from ww w  .  j  av a2  s .c om
{
    printf("\nA single quote looks like \'\n"); 
    return 0;
}

Result


Related Tutorials