How to print double quotes( ” ” ) using printf( )

Double quotes (” “), in C programming

For printing double quotes(” “), using print() in C we make use of ” \” ” backslash followed by double quote format specifier.

printf("  \" \"  ");
printf("\"Hello World\"")
How to print double quotes( ” ” ) using printf( )

C Code for printing ” “

#include<stdio.h>

int main() 
{
    // prints double quotes " "
    printf("  \" \"  ");
    
    printf("\n");
    
    // prints double quotes "Hello World"
    printf("  \"Hello World\"  ");
    
    return 0;
}

Output

" "  
"Hello World"