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.

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

C Code for printing " "

Run
#include <stdio.h>

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

Output

" "
"Hello World"

Prime Course Trailer

Related Banners

Get PrepInsta Prime & get Access to all 200+ courses offered by PrepInsta in One Subscription

Get over 200+ course One Subscription

Courses like AI/ML, Cloud Computing, Ethical Hacking, C, C++, Java, Python, DSA (All Languages), Competitive Coding (All Languages), TCS, Infosys, Wipro, Amazon, DBMS, SQL and others

Checkout list of all the video courses in PrepInsta Prime Subscription

Checkout list of all the video courses in PrepInsta Prime Subscription

2 comments on “How to print double quotes( ” ” ) using printf( )”